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

Fix merge chunk command generation in collection_defragmentation.js

    XMLWordPrintableJSON

Details

    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v7.2, v7.0, v6.0
    • CAR Team 2023-11-13, CAR Team 2023-11-27
    • 5
    • 1

    Description

      As part of collection_defragmentation.js, we are looking for merge commands that can be issued. However, the loop to search for these commands is broken.

      The index used to check for contiguous chunks is never incremented, and the check for the next chunk being on the same shard as the current one could go out of bounds if the index is set to chunks.length - 1.

      Attachments

        Activity

          People

            aitor.esteve@mongodb.com Aitor Esteve Alvarado
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: