Make mergeAllChunks precompute the mergeable chunks before acquiring the critical section

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2026-06-08, CAR Team 2026-06-22
    • 🟥 DDL
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, mergeAllChunks computes the set of chunks to merge while holding the critical section. This unnecessarily increases the time spent in the critical section. The logic that determines which chunks to merge should be moved outside the critical section, leaving only the work that must be performed under it.

      This task should also include:

      • adding a cluster parameter to limit the maximum number of chunks that can be merged in a single operation limited to maximum 100 chunks per mergeAllChunks.
      • making the config server commit command for mergeAllChunks idempotent

            Assignee:
            Aitor Esteve Alvarado
            Reporter:
            Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: