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

[SBE] compareValue should compare canonical types before checking field name equality

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Simplest repro:

      1. Turn SBE on
        • One way to do this: Go to /home/ubuntu/mongo/src/mongo/db/s/config/sharding_catalog_manager_merge_chunks_test.cpp and at the top of the test TEST_F(MergeChunkTest, MergingChunksWithDollarPrefixShouldSucceed), add a line to turn SBE on: internalQueryEnableSlotBasedExecutionEngine.store(true);
      2. Compile all unit tests:
        ninja -j200 install-unittests
      3. Run the test:
        ./build/opt/install/bin/db_s_config_server_test --verbose vvvv --suite MergeChunkTest --filter MergingChunksWithDollarPrefixShouldSucceed
      Show
      Simplest repro: Turn SBE on • One way to do this: Go to /home/ubuntu/mongo/src/mongo/db/s/config/sharding_catalog_manager_merge_chunks_test.cpp and at the top of the test TEST_F(MergeChunkTest, MergingChunksWithDollarPrefixShouldSucceed) , add a line to turn SBE on: internalQueryEnableSlotBasedExecutionEngine.store(true); Compile all unit tests: ninja -j200 install-unittests Run the test: ./build/opt/install/bin/db_s_config_server_test --verbose vvvv --suite MergeChunkTest --filter MergingChunksWithDollarPrefixShouldSucceed
    • Sprint:
      QE 2021-10-04

      Description

      When SBE is on, the unit test MergingChunksWithDollarPrefixShouldSucceed fails with "msg":"User assertion","attr":{"error":"IllegalOperation: could not merge chunks, shard shard0000 does not contain a sequence of chunks that exactly fills the range [{ a: { : MinKey } }, { a: { : MaxKey } })".

      The failing query seems to be:
      "query":"ns: config.chunks query: {
      uuid: UUID(\"f126b70f-42a3-4aa1-94bc-eff66bfa0841\"),
      shard: \"shard0000\",
      min: { $gte: { a: { : MinKey } } },
      min: { $lt: { a: { : MaxKey } } } }
      sort: {min:1}
      projection: {}
      }

      Posting the steps to reproduce, but for reference, I'll also include the failing test on Evergreen.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mihai.andrei Mihai Andrei
              Reporter:
              jennifer.peshansky Jennifer Peshansky
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: