orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

Indexes being rebuilt every restart (Customer=38)

Open robgratz opened this issue 12 years ago • 2 comments

v1.7.3 Looks like something has broken the logic that determines if rebuilding the indexes is necessasry. From what I can tell, this is based on the OPaginatedStorageDirtyFlag state. During shutdown (after checkin id=338d750) false is passed to the onDelete parameter during the close call on line 271 of OLocalPaginatedStorage. That ultimately gets passed down into doClose() call and evaluated on line 1969 where it clears the dirty flag and closes the file. On startup, in the OLocalPaginatedStorage.open call line 200, our database falls into the else clause and creates the dirty flag which then deletes the existing file, creates a new one and sets the dirty flag to true. This then kicks off the index rebuild. Our database is large and rebuilding the indexes takes 5+ minutes. We cannot have that every time we restart. Can someone please look into this? I can provide the database to test with.

robgratz avatar Jun 12 '14 19:06 robgratz

Further information. I am just starting the dserver app with my DB to test this. No further code is needed to reproduce.

robgratz avatar Jun 12 '14 20:06 robgratz

Hi This is already fixed in 1.7.4 branch.

andrii0lomakin avatar Jun 13 '14 04:06 andrii0lomakin