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

Create function inside CollectionShardingState to determine whether a chunk should be auto-split.

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.11
    • Affects Version/s: 3.5.10
    • Component/s: Sharding
    • Fully Compatible
    • Sharding 2017-07-31

      Currently, inside cluster_write.cpp's updateChunkWriteStatsAndSplitIfNeeded function, we check whether a chunk should be auto-split, depending on its current size and its desired chunk size.

      Because we want to move the auto-split logic to the mongod side, this logic should be able to be called from OpObserver::onUpdate and OpObserver::onInserts. To make this possible, this logic will be encapsulated into a private function within CollectionShardingState, to be later called by CollectionShardingState::onUpdateOp and CollectionShardingState::onInsertOp, once the splitVector and splitChunk code has been refactored onto the mongod side.

            Assignee:
            hugh.han Hugh Han
            Reporter:
            hugh.han Hugh Han
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: