Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
Fully Compatible
-
ALL
-
Sharding 2021-02-08
Description
In waitForReadConcernImpl we perform a makeNoopWriteIfNeeded to bump up the clusterTime by running a appendOplogNote command.
The command is run against the Shard object obtained here. If the waitForReadConcernImpl is running on a configsvr secondary, then Grid::get(opCtx)>shardRegistry()>getConfigShard() returns a ShardLocal instance. Then the appendOplogNote would be ran using the DBDirectClient agains the local node (secondary), which will fail.
We need to ensure that the appendOplogNote is ran against the replica set primary.
We could use ReplicationCoordinator::runCmdOnPrimaryAndAwaitResponse
Attachments
Issue Links
- is depended on by
-
SERVER-53105 Remove namespace field from config.chunks
-
- Closed
-