Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-66550

JIRA Datacenter - Add additional Lucene index checks before propagating index to other nodes

    XMLWordPrintable

    Details

    • UIS:
      3
    • Support reference count:
      6
    • Feedback Policy:
      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

      Problem Definition

      JIRA Datacenter can share lucene index between nodes on request. In some cases this lucene index can be corrupted at specific node, in that case that node still can reply and propagate that index to other nodes (nodes copy it from shared folder), thus affecting whole cluster.

      Suggested Solution

      Potential "donor" node should detect that index is corrupted (and possibly not healthy) and should not reply to request.

      Note

      There is similar check already in backupIndex(), see JRASERVER-64927

      public String backupIndex(String requestingNode, final IndexSnapshotContribution contribution) {
      ...
      final Long latestOperation = ofBizNodeIndexOperationStore.getLatestOperation(nodeId);
       if (latestOperation == null) {
          LOG.warn("Index backup failed - latest index operation not found. Requesting node: {}", requestingNode);
         return null;
       }
      

      so node refuses to share index if it does't have index operations.

      Workaround

      None

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ayakovlev@atlassian.com Andriy Yakovlev [Atlassian]
              Votes:
              12 Vote for this issue
              Watchers:
              18 Start watching this issue

                Dates

                Created:
                Updated: