Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-59194

Upgrade tasks should trigger foreground reindexing instead of background reindexing

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Obsolete
    • None
    • 0
    • 3
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      Scenario

      Some JIRA upgrade tasks might trigger a background reindexing, for example:

      UpgradeTask_Build64001.java
      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vdung Andy Nguyen (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: