-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
ALL
SERVER-97831 provided a targeted effective fix for the issue explained in its description.
However, it is still unclear why the reproducible proved that the bug could only affect collections that existed in the past before being dropped via dropDatabase.
Purpose of this ticket is to investigate whether there was some deeper issue related with some stale in-memory cache.
After locally reverting SERVER-97831, the issue can be reproduced by executing the following steps:
- db.runCommand({create:'a', writeConcern:{w:'majority', wtimeout:300}});
- db.dropDatabase();
- db.runCommand({create:'b', writeConcern:{w:'majority', wtimeout:300}}); // Implicitly re-create the db by creating another collection
- Block secondaries (e.g. stop replication on secondaries via fsync lock)
- db.runCommand({create:'a', writeConcern:{w:'majority', wtimeout:300}}); // This should fail with a write concern error but succeeds
- related to
-
SERVER-97831 Create collection may be wrongly acklowledged on sharded clusters when write concern not respected
- Closed