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

Monitor index snapshot restore progress via REST API

    XMLWordPrintable

Details

    • 1
    • 1
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      When performing a re-index in Jira Data Center the completed re-index on one node will be replicated by index snapshots to the other nodes

      This request is to provide a REST endpoint in order to monitor the index snapshot restore operation on the other nodes as this process can take a few hours in larger environments if a lot of changes are made in short amount of time.

      As a workaround administrators can monitor the application logs for the following sequence of events. In this example node 2 has completed a re-index and node 1's logs are as follows:

      jira1 | 2018-09-05 20:33:13,366 NodeReindexServiceThread:thread-1 INFO      [c.a.j.index.ha.DefaultNodeReindexService] Re-index after last sync detected: operationName=FULL_REINDEX_END, sourceNodeId=jira2, indexTime=2018-09-05 20:33:12.357. Resetting index count and restoring index from backupFilename='IndexSnapshot_10103.zip'
      jira1 | 2018-09-05 20:33:13,372 NodeReindexServiceThread:thread-1 INFO      [c.a.j.index.ha.DefaultIndexCopyService] Index restore started. Snapshot file: IndexSnapshot_10103.zip
      jira1 | 2018-09-05 20:33:14,287 NodeReindexServiceThread:thread-1 INFO      [c.a.j.index.ha.DefaultIndexRecoveryManager] Restoring search indexes - 1% complete... Replacing indexes
      jira1 | 2018-09-05 20:33:14,401 NodeReindexServiceThread:thread-1 INFO      [c.a.j.index.ha.DefaultIndexRecoveryManager] Re-index start time: {2018-09-05 20:29:26.297}, Latest DB date: {2018-09-05 03:17:35.207}
      jira1 | 2018-09-05 20:33:14,401 NodeReindexServiceThread:thread-1 INFO      [c.a.j.index.ha.DefaultIndexRecoveryManager] Restoring search indexes - 20% complete... Restored index backup
      jira1 | 2018-09-05 20:33:14,779 NodeReindexServiceThread:thread-1 INFO      [c.a.j.index.ha.DefaultIndexRecoveryManager] Recovering search indexes - 60% complete... Recovered added and updated issues
      jira1 | 2018-09-05 20:33:14,809 NodeReindexServiceThread:thread-1 INFO      [c.a.j.index.ha.DefaultIndexRecoveryManager] Recovering search indexes - 80% complete... Cleaned removed issues
      jira1 | 2018-09-05 20:33:14,843 NodeReindexServiceThread:thread-1 INFO      [c.a.j.index.ha.DefaultIndexRecoveryManager] Recovering search indexes - 100% complete... Recovered all indexes
      jira1 | 2018-09-05 20:33:14,847 NodeReindexServiceThread:thread-1 INFO      [c.a.j.index.ha.DefaultIndexCopyService] Index restore complete
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jcurry Jeff Curry
              Votes:
              9 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: