[SERVER-60292] [SBE] compareValue should compare canonical types before checking field name equality Created: 28/Sep/21  Updated: 29/Oct/23  Resolved: 30/Sep/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Jennifer Peshansky (Inactive) Assignee: Mihai Andrei
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-59178 Re-enable SBE as the default executio... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

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
Sprint: QE 2021-10-04
Participants:

 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.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 30/Sep/21 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}

Message: SERVER-60292 [SBE] Make compareValue check for type mismatch when comparing objects
Branch: master
https://github.com/mongodb/mongo/commit/ea2d6608656627d6fa8d27900c0b6f2ed17a496e

Generated at Thu Feb 08 05:49:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.