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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 7.6.12, 7.13.2, 8.0.0
    • Affects Version/s: 7.6.5
    • Component/s: Java API
    • None
    • 7.06
    • Severity 3 - Minor

      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.

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

              Created:
              Updated:
              Resolved: