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

All the metadata of indexes are lost after automatic index rebuilds #7125

Closed
1 task done
rdelangh opened this issue Jan 26, 2017 · 11 comments
Closed
1 task done

All the metadata of indexes are lost after automatic index rebuilds #7125

rdelangh opened this issue Jan 26, 2017 · 11 comments
Assignees
Labels
Milestone

Comments

@rdelangh
Copy link

OrientDB Version, operating system, or hardware.

  • v2.2.14

Operating System

  • Linux

Expected behavior and actual behavior

All the metadata of indexes are lost after automatic index rebuilds...

We set the metadata

allowLeadingWildcard":true

for all of our Lucene indexes.

After a restart of our server (we had a sudden death of the system), a rebuild was started of nearly all of the indexes, including the Lucene indexes.
Now, I notice that such rebuilt Lucene indexes have not these metadata anymore. Obviously resulting in errors for our queries where we use such wildcards.

@robfrank robfrank self-assigned this Jan 26, 2017
@robfrank robfrank added this to the 2.2.x (next hotfix) milestone Jan 26, 2017
@robfrank
Copy link
Contributor

Hi, even if the clause allowLeadingWildcard":true involves only the Query parser behaviour, it is necessary to drop and rebuild the index to re-enable it.
I'm afraid of that. I've got other bugs in the backlog, I'll try to do my best to solve it.
Thanks for reporting

2 similar comments
@robfrank
Copy link
Contributor

Hi, even if the clause allowLeadingWildcard":true involves only the Query parser behaviour, it is necessary to drop and rebuild the index to re-enable it.
I'm afraid of that. I've got other bugs in the backlog, I'll try to do my best to solve it.
Thanks for reporting

@robfrank
Copy link
Contributor

Hi, even if the clause allowLeadingWildcard":true involves only the Query parser behaviour, it is necessary to drop and rebuild the index to re-enable it.
I'm afraid of that. I've got other bugs in the backlog, I'll try to do my best to solve it.
Thanks for reporting

@rdelangh
Copy link
Author

@robfrank

ok, thx for the confirmation, at least we know now it is a known bug. Which will be resolved very soon...;-)

Meanwhile, dropping and recreating these indexes. This lasts for about 1.5hrs per index (20-30M docs per class, multiple indexes per class). Only 17 indexes to go... :-(

@lvca lvca added the bug label Jan 27, 2017
@robfrank
Copy link
Contributor

I was not clear. We didn't have knowledge of the bug, but if after a crash the index rebuild procedure doesn't load the metadata, well, the index needs to be rebuilt. So, I'm trying to reproduce the bug, that's not so easy (hammering a running server every time seems to be too much expensive :) )

@rdelangh
Copy link
Author

hammering a running server every time seems to be too much expensive

no big deal: one possibility is to launch a virtual server, in that you run ODB server and get it busy; then from the host machine, abruptly stop the virtual server and disable abruptly its access to the disk device. Done.

@robfrank
Copy link
Contributor

I've managed to replicate the bug.
Good: the index is recreated using the right metadata: indexes are rebuilt right!.
Bad: sometimes, after rebuild, the index is re-opened with wrong metadata.
Note that it happens only sometimes (random).
Possible workaround: after rebuild, switch off and the on the server.
We are working to find a fix.

@rdelangh
Copy link
Author

rdelangh commented Jan 31, 2017

@robfrank thx!
cool, that's already a big step in finding a fix.

robfrank added a commit that referenced this issue Jan 31, 2017
@robfrank
Copy link
Contributor

robfrank commented Feb 3, 2017

FYI, @taburet is working actively on it.

taburet added a commit that referenced this issue Feb 7, 2017
@robfrank
Copy link
Contributor

robfrank commented Feb 7, 2017

We are doing final tests, the fix is on SNAPSHOTs and will be part of 2.2.17

taburet added a commit that referenced this issue Feb 7, 2017
@robfrank robfrank modified the milestones: 2.2.17, 2.2.x (next hotfix) Feb 13, 2017
@robfrank
Copy link
Contributor

Our tests are always green. I close and move on 2.2.17 milestone.

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

6 participants