Catalog operations consistency validator doesn't support NumberLong values for sparse indexSpec field

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: 8.0.0, 8.2.0-rc0, 8.1.0
    • Component/s: Catalog
    • None
    • Catalog and Routing
    • ALL
    • v8.1, v8.0
    • CAR Team 2025-07-07
    • 0
    • None
    • 3
    • TBD
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      There is a well-known quirk of the catalog,where some fields as sparse can be persisted as numbers, with the field being interpreted as true if number != 0).

      catalog_list_operations_consistency_validator.js accounts for this, but the check is done as typeof indexSpec.sparse === "number", and this fails when indexSpec.sparse is a NumberLong (because in that case, typeof indexSpec.sparse === "object"). This can cause test failures in the fuzzer suites.

      Fix the code to handle big numeric types (NumberLong, NumberDecimal, etc.) correctly for fields such as sparse, bits, expireAfterSeconds.

            Assignee:
            Joan Bruguera Micó
            Reporter:
            Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: