Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caught OSerializationException when using select and traverse query in batch #8142

Closed
mexeniz opened this issue Mar 6, 2018 · 0 comments
Closed
Assignees

Comments

@mexeniz
Copy link

mexeniz commented Mar 6, 2018

OrientDB Version: 2.2.33

Java Version: 1.8.0_152

OS: FreeBSD 11.0-RELEASE-p1

I have a problem when I try to traverse from a newly created vertex in batch query below.
This batch worked fine with OrientDB version 2.2.30. After I upgraded database to 2.2.32, the batch query failed with logs attached in Error Log. I also tested with latest OrientDB 2.2.33 and also recreating the database, but there was still the same error.
Anyway, the error is gone when I configure ridBag option in orientdb-server-config.xml as following:
<entry name="ridBag.embeddedToSbtreeBonsaiThreshold" value="-1"/>
Currently, my database is not in distributed mode, but I plan to enable distributed mode in the future. Then, I am not quite sure that this configuration is good solution.
Is there another configuration to fix this error?
Should I change my query?

Batch Query

begin
let root_thumb = select from #14:1
let drive = create vertex drives set name="temp", size=0, usage=0,acl={"user1@test.com":126},datetime=sysdate(),modtime=sysdate()
create edge HardLink from $drive to $root_thumb set type='thumbdrive'
update (select from (traverse out('HardLink') from $drive) where @Class = 'folders') increment size=0
update (select from (traverse out('HardLink', 'MemberOf') from $drive) where @Class = ['users','domains']) increment usage=0
delete vertex from (select from $drive)
commit retry 100

Remark : #14:1 is a rid of vertex that connects with another root vertex.

Error Log

Full error log -> ordb-error.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants