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

Force deterministic splits points in balancer_defragmentation_merge_chunks.js

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.3.0
    • 5.3.0, 5.2.0
    • None
    • None
    • Fully Compatible
    • ALL
    • Sharding EMEA 2022-01-24
    • 134

    Description

      In balancer_defragmentation_merge_chunks.js we rely on an unordered bulk insert plus the action of the chunk splitter to create the initial chunks for the test collections.

      Unfortunately in case of write operation burst (such as bulk insert) the chunk splitter is not guarantee to split all the chunks correctly. In fact if a write operation arrives while the auto splitter is still performing a split operation triggered by a previous write, the latter will be ignored by the auto splitter.

      One possible solution would be to not use bulk insert to populate the collection and instead issue several standalone insert operation in a loop and waitForOngoingChunkSplits between each iteration so to guarantee a deterministic number of final chunks (auto split actions).

      Attachments

        Activity

          People

            allison.easton@mongodb.com Allison Easton
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: