Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-70964

Do not wait for range deletion thread on stepdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 6.2.0-rc0
    • 6.2.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • Hide

      Apply the provided patch on top of r6.2.0-alpha-1295-gab34541c92e and run:

      resmoke.py --suite=sharding jstests/sharding/range_deletion_hang_stepdown.js
      

      Show
      Apply the provided patch on top of r6.2.0-alpha-1295-gab34541c92e and run: resmoke.py --suite=sharding jstests/sharding/range_deletion_hang_stepdown.js
    • Sharding EMEA 2022-10-31, Sharding EMEA 2022-11-14
    • 55

    Description

      On stepdown the RangeDeleterService destruct the ReadyRangeDeletionsProcessor that in turns interrupt and join its internal thread.

      In order not to slowdown the stepdown process we should instead

      • Interrupt the internal thread onStepDown()
      • Join the internal thread onStepUpBegin()
      • Start the internal thread onStepUpComplete

      The proposed approach will still guarantee that all the previous range deletions will be drained strictly before the node can transition to PRIMARY again.

      Attachments

        Issue Links

          Activity

            People

              tommaso.tocci@mongodb.com Tommaso Tocci
              tommaso.tocci@mongodb.com Tommaso Tocci
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: