-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
2
-
4
-
NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.
Scenario
Some JIRA upgrade tasks might trigger a background reindexing, for example:
private void fixBrokenIssues(List<BrokenIssue> brokenIssues) throws GenericEntityException, IndexException { for (BrokenIssue brokenIssue : brokenIssues) { final GenericValue issue = ofBizDelegator.findById("Issue", brokenIssue.issueId); if (issue != null) { issue.set("watches", brokenIssue.correctWatches); issue.store(); issueIndexManager.reIndex(issue); } } }
JRA-25788 was implemented to utilize more threads for reindexing, but it's only applicable to foreground reindexing. As the upgrade tasks trigger background reindexing, only 1 single thread is used which slows down the whole process.
Suggestion
Upgrade tasks should trigger foreground reindexing (where necessary) so that multiple threads can be utilized that speeds up the whole process.
- derived from
-
JRASERVER-25788 Re-index : Increase thread number for large instance
- Closed
- incorporates
-
JRASERVER-59195 UpgradeTask_Build64001.java should only reindex affected issues
- Closed
- is superseded by
-
JRASERVER-47052 Provide option to disable Index task during upgrade.
- Gathering Interest
- relates to
-
JRACLOUD-59194 Upgrade tasks should trigger foreground reindexing instead of background reindexing
- Closed
-
JRASERVER-47044 Jira reindex triggered during upgrade doesn't indicate progress in log
- Gathering Interest