-
Type: New Feature
-
Resolution: Won't Do
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Storage Execution
-
Execution Team 2021-12-13, Execution Team 2022-02-07, Execution Team 2022-02-21, Execution Team 2022-03-07
During a chunk migration of a sharded time-series collections, we clear all the open buckets on the source shard. This seems to have an impact on the write throughput. One of the suggested ways to improve the performance was to clear only the buckets that match the current chunk range that is being migrated.
To achieve this, we need an alternative interface to BucketCatalog::clear(const NamespaceString& ns) which can accepts a start and end values of a shard key pattern and clear only the overlapping buckets. Note that this function is called in the critical section. So it is also important that this implementation does not iterator over all the open buckets to identify the overlapping buckets.
- is related to
-
SERVER-66690 Insert into closed buckets identified via aggregation pipeline
- Closed
-
SERVER-66698 Clear BucketCatalog namespaces lazily using clear registry
- Closed