Futher investigate the cause of blacklisting jstests/core/index_key_expression.js in some sharding pasthrough

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QE 2023-01-23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The jstests/core/index_key_expression.js failed in some of the sharding passthrough with the error - "The field '$const' is not valid for an index specification.", where the extra $const specifier gets prepended to the index spec in some cases, as in: 

      { $const: { key: { b: 1.0, a: -1.0 }, name: \"btreeIndex\" } }

      The  $const causes the index-specification validation code to flag this spec as invalid; hence, the JS test fails with an unexpected error. This could be a legit issue and this ticket is about investigating the cause.

              Assignee:
              Rishab Joshi (Inactive)
              Reporter:
              Rishab Joshi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: