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

GET on /rest/api/2/reindex doesn't return the status of the reindexing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 6.3.4, 6.4.1, 6.4.3, 9.4.12
    • REST API

    Description

      Summary

      A GET request on /rest/api/2/reindex does not return the status of the reindexing process

      Steps to Reproduce

      1. Run Re-Indexing
      2. Send a GET request /rest/api/2/reindex to retrieve information about the reindex

      Expected Results

      Information about reindex is returned

      {
      "progressUrl": "/secure/admin/jira/IndexProgress.jspa?taskId=10007",
      "currentProgress": 11,
      "currentSubTask": "Currently working on: Issue index",
      "type": "BACKGROUND",
      "submittedTime": "2015-05-15T10:40:02.657+0800",
      "startTime": "2015-05-15T10:40:02.658+0800",
      "success": false
      }
      

      Actual Results

      The below exception is thrown in the response (Using POSTMAN REST client)

      Notes

      Quoted from the REST API documentation:

      Returns information on the system reindexes. If a reindex is currently taking place then information about this reindex is returned. If there is no active index task, then returns information about the latest reindex task run, otherwise returns a 404 indicating that no reindex has taken place.

      Workaround

      Use /rest/api/2/reindex/progress when reindex is progressing. However, this is only available from JIRA 6.4 onwards

      Attachments

        Activity

          People

            Unassigned Unassigned
            cchan Chung Park Chan
            Votes:
            7 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

              Created:
              Updated: