-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 6.0.0, 7.0.0, 8.1.0-rc0, 8.0.0
-
Component/s: None
-
None
-
Catalog and Routing
-
ALL
Bulk insertions on a node are divided into smaller sub-batches, each containing up to 64 documents by default (as specified by internalInsertMaxBatchSize). Non-transactional bulk insertions don't atomically synchronize with DDL operations; instead, they only synchronize at the individual sub-batch level. If a ddl operation occurs between two sub-batch insertions, the second batch will operate on the old incarnation of the database/collection.
For some ddls, such as rename or drop, the insertion will recreate the old namespace and insert data there.
Specifically for rename this can result in two collections containing partial data instead of a single collection with all the data.
- is related to
-
SERVER-86793 Retryable write may execute more than once in sharded clusters when collection namespace is reused after drop or rename
- Backlog
-
SERVER-95758 random_DDL_crud_operations.js might miscount if a bulk insert happens concurrently with a rename
- Closed