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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • 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
    • QE 2021-10-04

      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.

            Assignee:
            mihai.andrei@mongodb.com Mihai Andrei
            Reporter:
            jennifer.peshansky@mongodb.com Jennifer Peshansky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: