-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sharding
-
Sharding EMEA
-
Sharding EMEA 2023-05-29, Sharding EMEA 2023-06-12, Sharding EMEA 2023-06-26
As observed in SERVER-73106, the meaning of the default-constructed WriteConcernOptions() is dependent on the presence of getLastErrorDefaults in the replica set config. It may be worthwhile to audit the usages of the default-constructed WriteConcernOptions() in other areas of the sharding codebase:
- https://github.com/mongodb/mongo/blob/r4.4.18/src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp
- https://github.com/mongodb/mongo/blob/r4.4.18/src/mongo/db/s/sharding_state_recovery.cpp
Explicitly specifying a {w: 1} write concern for internal operations will prevent getLastErrorDefaults in the replica set config from an effect.
const WriteConcernOptions kNoWaitWriteConcern{1, WriteConcernOptions::SyncMode::UNSET, Seconds(0)};
- is related to
-
SERVER-73106 [v4.4] Chunk migration attempts to wait for replication with session checked out when getLastErrorDefaults are used in replica set config, leading to server crash
- Closed
-
SERVER-78116 [v4.4] Chunk migration still attempts to wait for replication with session checked out when getLastErrorDefaults are used in replica set config
- Closed