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

First split in the chunk has a higher threshold than the rest

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.8.0-rc5
    • Component/s: Sharding
    • None
    • Sharding
    • ALL

      If the current total dataSize in the collection within a shard is smaller than given maxChunkSize, splitVector will return early:

      https://github.com/mongodb/mongo/blob/r2.8.0-rc5/src/mongo/s/d_split.cpp#L357

      Whereas, if there are sufficient amount of bytes in the collection, it can return with a split point as long as the average size in the chunk range is more than maxChunkSize / 2

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: