Fix ReshardingDonorRecipientCommonTest teardown races

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • ClusterScalability 25May-5June
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Two fixes:

      1. Move onStepDown() before WaitForMajorityService::shutDown() so in-flight waitForMajority calls get a clean cancellation instead of ShutdownInProgress, which withAutomaticRetry would retry and hit the kError→kError invariant in _transitionToError.
      2. Add explicit interrupt() at the end of testProcessDonorFields/testProcessRecipientFields to prevent state machines from dispatching mock network requests before teardown, which deadlocked shutdownExecutorPool() under TSAN.

            Assignee:
            Kruti Shah
            Reporter:
            Kruti Shah
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: