-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
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.