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

Database inconsistency - Cluster is null error #3825

Closed
dcarr178 opened this issue Mar 27, 2015 · 6 comments
Closed

Database inconsistency - Cluster is null error #3825

dcarr178 opened this issue Mar 27, 2015 · 6 comments
Assignees
Labels

Comments

@dcarr178
Copy link

(running server 2.0.5) In the log below, when deleting from cluster 15 I get a server error saying cluster 18 is null but there is no cluster 18 in my schema. This happened to me once before and the only thing I knew how to do is drop database and start over. How can I get the consistency back?

orientdb {db=river}> classes


CLASSES
----------------------------------------------+------------------------------------+------------+----------------+
 NAME                                         | SUPERCLASS                         | CLUSTERS   | RECORDS        |
----------------------------------------------+------------------------------------+------------+----------------+
 _studio                                      |                                    | 11         |              0 |
 E                                            |                                    | 10         |              0 |
 OFunction                                    |                                    | 6          |              0 |
 OIdentity                                    |                                    | -          |              0 |
 ORestricted                                  |                                    | -          |              0 |
 ORIDs                                        |                                    | 8          |              0 |
 ORole                                        | OIdentity                          | 4          |              3 |
 OSchedule                                    |                                    | 7          |              0 |
 OTriggered                                   |                                    | -          |              0 |
 OUser                                        | OIdentity                          | 5          |              4 |
 rE                                           | E                                  | 12         |              0 |
 rHasCategory                                 | rE                                 | 16         |              2 |
 tBrand                                       | tV                                 | 14         |              2 |
 tChannel                                     | tV                                 | 15         |              1 |
 tV                                           | V                                  | 13         |              0 |
 V                                            |                                    | 9          |              0 |
----------------------------------------------+------------------------------------+------------+----------------+
 TOTAL = 16                                                                                                   12 |
----------------------------------------------+------------------------------------+------------+----------------+
orientdb {db=river}> delete vertex tChannel

Error: com.orientechnologies.orient.core.exception.ODatabaseException: Error on retrieving record #18:0 (cluster: null)

Error: java.lang.IllegalArgumentException: Cluster 18 is null
@lvca
Copy link
Member

lvca commented Mar 27, 2015

Try calling reload schema from console. Seems the schema hasn't been updated.

@lvca lvca self-assigned this Mar 27, 2015
@dcarr178
Copy link
Author

I tried that a few times and closed down the console a few times and
restarted both it and the server but the problem is still there.

On Fri, Mar 27, 2015 at 2:27 PM, Luca Garulli notifications@github.com
wrote:

Try calling reload schema from console. Seems the schema hasn't been
updated.


Reply to this email directly or view it on GitHub
#3825 (comment)
.

David Carr
801.231.4946

@lvca
Copy link
Member

lvca commented Apr 10, 2015

Could you share the database to debug where 18 comes out?

@dcarr178
Copy link
Author

Once I removed my java hook from the config file and restarted OrientDB it worked fine. I think the underlying issue/concern is that any Java hook can completely torpedo the OrientDB server and there are no mechanisms to debug what is going on or what runtime problems are occurring. I was able to correlate this new problem to a recently-released java hook but the hook compiled with no errors and the errors only appeared at runtime.

@lvca
Copy link
Member

lvca commented Apr 13, 2015

Do you have any errors to understand what's the problem?

@lvca
Copy link
Member

lvca commented Apr 13, 2015

I'm closing this issue, because is not pertinent anymore. Please feel free to open a new one if you have any other problem with hook management.

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

2 participants