-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Execution Team 2022-01-24, Execution Team 2022-02-21, Execution Team 2022-03-07
-
(copied to CRM)
In C2C replication, we would like to only replicate majority committed data so that we can avoid handling rollbacks of the source cluster. This is now done by using majority readConcern in collection scans in the cloning phase. However, listDatabases/listCollections/listIndexes don't support reading majority committed catalog as the catalog is not versioned. This makes it very hard for an external process to detect when the result returned by these list commands rolls back. For mongosync, we are planning to use $indexStats instead of listIndexes to get the index info.
This work is to support read concern level “majority” for $indexStats (or support it for some new $listIndexes aggregation stage which targets all shards owning chunks) by reading from a majority committed snapshot of the _mdb_catalog without actually introducing versioned catalog.
And it should work for both replica sets and sharded clusters.
- is related to
-
SERVER-62006 Support majority read for _mdb_catalog
- Closed
- related to
-
SERVER-64404 improve sharding support $listCatalog aggregation stage
- Closed