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

Fix change_streams_split_event_v1_v2_tokens.js reshardCollection's initial chunk split (v8.0)

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.5
    • Affects Version/s: None
    • Component/s: None
    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v8.0, v7.0, v6.0
    • Cluster Scalability 2024-12-23
    • 200

      change_streams_split_event_v1_v2_tokens.js reshards a collection without specifying numInitialChunks. This causes the server to use sampling-based split policy, but there are not enough documents to generate the requisite number of chunks.

      The fix is to specify the intended numInitialChunks in the reshardCollection command so that it does not use sampling-based split policy.

      It looks like this test no longer exists in the master branch. The fix is for backports in the inidicated branches below.

            Assignee:
            israel.hsu@mongodb.com Israel Hsu
            Reporter:
            israel.hsu@mongodb.com Israel Hsu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: