Rewrite the queries supporting the commit of merge(All)Chunks operations into a canonical form

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • CAR Team 2026-03-30
    • 1
    • 🟥 DDL
    • None
    • None
    • None
    • None
    • None
    • None

      The commits of the mergeChunks and _configsvrMergeAllChunksOnShard commands include two query statements (1, 2) to select all the pre-existing chunks within a range (using the chunkDoc.min field to define the boundaries).

       These statements are nevertheless expressed in a non-canonical way.

      Instead of declaring a single statement

      {minField: {$lte: lowerBoundValue, $gt: upperBound}} 

      They are encoded as two statements (evaluated in and) over the same field name

       minField: {$lte:: lowerBoundValue}, 
       minField: {$gt: upperBoundValue}

      The objective of this ticket is to re-establish the canonical form.

            Assignee:
            Daniele Alessandrelli
            Reporter:
            Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: