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

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Sharding Team
            Reporter:
            Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: