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

java.lang.NegativeArraySizeException thrown on vertices that were in orientdb recently #6638

Closed
krl22785 opened this issue Aug 30, 2016 · 11 comments
Assignees
Labels

Comments

@krl22785
Copy link

OrientDB Version, operating system, or hardware.

v2.2

Operating System

Linux

Expected behavior and actual behavior

What is the likely cause of a java.lang.NegativeArraySizeException when querying a vertex in the following manner:

select * from #14:838

I am querying a few vertices directly and all of sudden I am getting this exception. I suspect some of my data might be corrupted but wanted to see if you could provide some guidance here.

Just a few days prior, these vertices were available. I also realized that this exception is being thrown for a batch of vertices with sequential @rids. Its about 100+ vertices.

Any guidance?

@krl22785 krl22785 changed the title java.lang.NegativeArraySizeException thrown on vertices that were in OrientDB Yesterday java.lang.NegativeArraySizeException thrown on vertices that were in orientdb recently Aug 30, 2016
@luigidellaquila
Copy link
Member

Hi @krl22785

How can I reproduce this issue? Do you have a database or a test case that I can use?
(server logs - if any - will help as well)

Thanks

Luigi

@krl22785
Copy link
Author

krl22785 commented Sep 7, 2016

Hey @luigidellaquila

I am not sure how to help you reproduce it. Each time I try to query a batch of elements that are in a range, I get this exception. When I look at the logs, I see this:

2016-09-06 14:58:21:816 SEVER Internal server error:
java.lang.NegativeArraySizeException [ONetworkProtocolHttpDb]
2016-09-06 15:29:28:051 SEVER Internal server error:
java.lang.NegativeArraySizeException [ONetworkProtocolHttpDb]
2016-09-06 18:30:08:314 SEVER Internal server error:
java.lang.NegativeArraySizeException [ONetworkProtocolHttpDb]
2016-09-06 18:30:30:526 SEVER Internal server error:

@luigidellaquila
Copy link
Member

Hi @krl22785

Do you think it's possible to privately share your db? The query you are reporting is quite common, so the problem should be in the data

Thanks

Luigi

@krl22785
Copy link
Author

krl22785 commented Sep 7, 2016

@luigidellaquila

I don't think I can share but this is what I have in my logs. After a hard reboot, the logs threw this message. This is data we already had in our database. Should I reconsider restarting the database again?

It appears each time I query for the records that had an "Error on retrieving..." message, it throws this java.lang.NegativeArraySizeException.

Any guidance?

$ANSI{green {db=DATABASE}} Error on fetching record during browsing. The record has been skipped
com.orientechnologies.orient.core.exception.ODatabaseException: Error on retrieving record #14:14809 (cluster: classA)
$ANSI{green {db=DATABASE}} Error on fetching record during browsing. The record has been skipped
com.orientechnologies.orient.core.exception.ODatabaseException: Error on retrieving record #14:14810 (cluster: classA)
$ANSI{green {db=DATABASE}} Error on fetching record during browsing. The record has been skipped
com.orientechnologies.orient.core.exception.ODatabaseException: Error on retrieving record #14:14811 (cluster: classA)

@andrii0lomakin
Copy link
Member

@krl22785 what concrete version of 2.2 do you use could you specify ?

@krl22785
Copy link
Author

krl22785 commented Sep 7, 2016

@Laa we are using orientdb 2.2.4

@andrii0lomakin
Copy link
Member

@krl22785 that is what you should not to do in any case, 2.2.4 contains critical issue which may damage data. Please upgrade to latest one.

@krl22785
Copy link
Author

krl22785 commented Sep 7, 2016

@Laa @luigidellaquila is that for both the community and enterprise versions? Was that announced that there were critical issues with 2.2.4?

@lvca
Copy link
Member

lvca commented Sep 23, 2016

@krl22785 did you upgrade and resolved this problem?

@yeoedward
Copy link

yeoedward commented Sep 30, 2016

@lvca We tried upgrading and migrating an export of the data from before this error occurred but were unable to because of #6759. Do you think they could be related? i.e. some silent corruption already took place before, and only shows up during the import?

This issue has been fixed.

@yeoedward
Copy link

@lvca Incremental restore in 2.2.4 also does not work on our database backup: #6774. Not sure if all these import/export and backup/restore problems are related to data corruption?

@lvca lvca closed this as completed Jan 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

5 participants