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.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.11
    • 3.5.10
    • Sharding
    • Fully Compatible
    • Sharding 2017-07-31

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: