Details
-
Task
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
None
-
Sharding
-
Sharding 2016-10-10
Description
When ErrorCodes::BalancerLostDistributedLock is received, there's no need to refresh the chunk metadata to find out whether it's okay to fail the command normally or the shard must fassert because the state is unrecoverable.
There may be other errors as well that the CommitChunkMigration command returns where it is assured the command can safely fail without any concern about corrupt metadata.
Check out whether the RemoteCommandRetryScheduler::kAllRetriableErrors or RemoteCommandRetryScheduler::kNotMasterErrors sets of error codes can be used in some way.