-
Suggestion
-
Resolution: Duplicate
-
None
-
None
Jira updates the index for issues whenever you edit them, right? Could not a full reindex be issued this way also - search all issues and reindex all of them separately, one-by one? This would not require Jira to be locked and would still allow a full reindex to be done, even for very large instances.
Is this possible/easy to implement perhaps? I know it would take a very long time to complete a full reindex this way (depending on the number of issues), but this would also enable making a full reindexing in instances where this is otherwise not possible (24/7 use).
- duplicates
-
JRASERVER-7842 Reindex in background to avoid locking users out
- Closed
- relates to
-
JRASERVER-10874 Add Re-index as a built-in service
- Closed
Hi Ivar and Jed,
Without any knowledge of the forum discussion or
JRA-16347, last night I wrote and ran a JSP very similar to Ivar's suggestion inJRA-16347so that we could 'silently' re-index our whole system and leave it online and not have to take Jira down for 40 minutes to re-index. Index Optimization was off. It ran and no errors were reported. It took 5 hours to re-index 130,000 issues.We thought everything was OK but then this morning we had 2 reports of filters displaying incorrect values for 1 issue each that did not match each issue's actual values. To re-re-index any issues that might have become corrupted, I put a comment on all 60 issues touched during the 5 hours.
Now I've read this forum discussion and
JRA-16347and I'm wondering if Thread.yield() might avoided the problem.However, if there was lock contention from a user action, wouldn't the contention have caused an exception which I would see in the logs? I have no errors reported in the logs during the 5 hours that the re-index JSP was running.
Could having the OfBizListIterator open for 5 hours have caused the problem? But if it had wouldn't that have reported an exception?
I would really love to see
JRA-7842implemented.Thanks,
Jeff