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

Race during stepdown can trigger invariant in ReshardingMetrics

    • Fully Compatible
    • ALL
    • v6.0, v5.0
    • Hide

      Running test_resharding_test_fixture_shutdown_retry_needed.js can reproduce this bug intermittently. Adding a sleep before this line helps in increasing the chances of reproducing the issue, but still not reliable enough.

      Show
      Running test_resharding_test_fixture_shutdown_retry_needed.js can reproduce this bug intermittently. Adding a sleep before this line helps in increasing the chances of reproducing the issue, but still not reliable enough.
    • Sharding 2022-08-22
    • 0
    • 3

      When a step down occurs the recipient tries to wait for the _dataReplicationQuiesced future before deactivating the metrics state. That future is a composite of multiple futures and when any of the futures error out it would normally try to join them here. The issue is that during step down, the primary only service also shuts down the executor so the executor would refuse to run the onError and it would end up finishing the future chain without waiting for the other futures to complete.

            Assignee:
            brett.nawrocki@mongodb.com Brett Nawrocki
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: