Invalid property value for OResult: [#1982:-3]

Annoying bug found. We can’t traverse hierarchy of just created objects untill transaction is commited.
OrientDB Server v3.0.26

It can be reproduced like this:

drop class _Object if exists unsafe;
create class _Object extends V;
create property _Object.name STRING;
drop class _Contains if exists unsafe;
create class _Contains extends E;
begin;
insert into _Object(name) values (‘a’), (‘b’), (‘c’);
create edge _Contains from (select from _Object where name = ‘a’) to (select from _Object where name = ‘b’);
create edge _Contains from (select from _Object where name = ‘b’) to (select from _Object where name = ‘c’);
let top = (select * from (traverse in(’_Contains’) from (select from _Object where name=‘c’)) where in(’_Contains’).size() == 0);
commit;
return $top

java.lang.IllegalArgumentException: Invalid property value for OResult: [#1982:-3] - com.orientechnologies.orient.core.db.record.ridbag.ORidBag

Hi @arch7tect

Thank you very much for reporting, I’m checking it.
Could you please also open an issue here https://github.com/orientechnologies/orientdb/issues it will make it much easier to track

Thanks

Luigi

Oh, I see you did it already

Thanks!

Luigi

Hi @arch7tect

I managed to reproduce and fix it, the fix is already on the branch

Thanks!

Luigi

1 Like