Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-61319

BucketCatalog should allow clearing the buckets on a range of meta and/or time values

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 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.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            arun.banala@mongodb.com Arun Banala
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: