Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-68900

Checking IndexManager.isIndexAvailable() returns true while foreground reindex is in progress

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 8.0.0, 7.13.2, 7.6.12
    • 7.6.5
    • Java API
    • None

    Description

      Summary

      In Jira API, calling IndexManager.isIndexAvailable() returns true while the node runs foreground indexing. The intended function of the API method is as per the documentation:

      Whether this index is available. The index is not available if the index is being rebuilt or recovered. In a clustered environment this reflects only the state on the local node.

      Expected result

      This call returns false if index is during index recovery or foreground index is being rebuilt on the local node. This call returns true if index is healthy, or background indexing is underway.

      Actual result

      This call returns false if index is during index recovery. This call returns true if index is healthy, foreground or background is underway.

      Note

      • Although fix for this problem will be available in future 7.6 and 7.13 versions, vendors building plugins to be compatible across the entire range of 7.x versions are advised not to lean on this method.
      • This problem does not affect Jira 8.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lwlodarczyk Lukasz Wlodarczyk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: