Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16473

Race condition in shard split when a sub-shard is put in recovery state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.2
    • None
    • None

    Description

      There is a race condition in shard splits code when a sub-shard is put in RECOVERY state and the remaining replicas are added. The problem is that the code does not wait to ensure the sub-shard state is indeed changed to RECOVERY.

      andyvuong reproduced the bug by adding some artificial delay, and this race condition seems to be the root cause of indexing holes.

      The fix is to wait for the RECOVERY state.

      Attachments

        Issue Links

          Activity

            People

              broustant Bruno Roustant
              broustant Bruno Roustant
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m