-
Suggestion
-
Resolution: Fixed
In jira-application.properties, we say that JIRA should wait at most 30s to an index lock before giving up:
# Specified the 'wait time' for a file lock in the Lucene IssueIndexManager (in milliseconds) # This value should only be modified if you are seeing a jira.issue.index.DefaultIndexManager 'Giving up reindex' ERROR # in your log files or requested to do so by Atlassian support. jira.index.lock.waittime=30000
For an average size JIRA (33k issues) on average hardware, JIRA's nightly index optimization takes 48s. On the ASF JIRA, 75k issues takes 208s. If any write operation takes place during this time it will fail.
Clearly, 30s hangs are not outside the bounds of possibility. Could we increase this to 300s or something?
- is related to
-
JRASERVER-15548 If an attempt to get the Index lock times out, the indexing operation is discarded
-
- Closed
-
-
JRASERVER-29487 Remove hardcoded OptimizeIndexTrigger from scheduler config
- Closed
I believe we are experiencing this problem with Jira 3.13 (our index optimizations fail due to timeout). I'm not entirely sure I complete understand what the issue is here, though. Is there documentation somewhere, or could someone explain? What is the right thing to do to deal with this in Jira 3.13 before Jira 4.0 is relased? Should we just increase jira.index.lock.waittime, should we raise jira.index.max.reindexes to attempt to force the reindex to happen only during periods of low load (difficult because we have a global user base) or something else?