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

Remove the invariant check for existence of _currentOp from resharding_metrics

    • Fully Compatible
    • ALL
    • Sharding 2021-04-19, Sharding 2021-05-03
    • 128
    • 1

      After setting the error state, the resharding coordinator service's onCompletion() method calls the onCompletion() for ReshardingMetrics. ReshardingMetrics::onCompletion() will set the value of _currentOp to boost::none since there is no longer a current resharding operation. But the op log fetcher still tries to increment metrics after this is set since it is not aware that resharding has failed with an error and the resharding operation has been aborted. This operation fails on the invariant check for the existence of a current operation since it was already set to none in the previous step causing the test to abort with a failure.

            Assignee:
            kshitij.gupta@mongodb.com Kshitij Gupta
            Reporter:
            kshitij.gupta@mongodb.com Kshitij Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: