[SERVER-68241] index_tag invalid comparator Created: 22/Jul/22  Updated: 29/Oct/23  Resolved: 15/Aug/22

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

Type: Bug Priority: Major - P3
Reporter: Alex Neben Assignee: Henri Nikku
Resolution: Fixed Votes: 0
Labels: debug-mode
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 8

 Description   

https://spruce.mongodb.com/version/mongodb_mongo_master_e37f9d5efff9974a4a66b6a84bf98f24c1052937/tasks?page=0&sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC&variant=%5Eenterprise-rhel-80-64-bit-dynamic-debug-mode%24

jstests/core/or_inexact.js

 

https://logkeeper.mongodb.org/build/c3c5581d48597da2f865c6a787a01594/test/62da31bf9041307f69d5f637?raw=1

 

[j2] Error: comparison doesn't meet irreflexive requirements, assert(!(a < a)).
[j2] 
[j2] Objects involved in the operation:
[j2]     instance "functor" @ 0x0x7f06c419d6ff

{ [j2]       type = mongo::(anonymous namespace)::sortUsingTags(mongo::MatchExpression*)::\{lambda(auto:1&&, auto:2&&)#1}

;
[j2]     }
[j2]     iterator::value_type "ordered type"

{ [j2]       type = std::unique_ptr<mongo::MatchExpression, std::default_delete<mongo::MatchExpression> >; [j2]     }

 Comments   
Comment by Githook User [ 12/Aug/22 ]

Author:

{'name': 'Henri Nikku', 'email': 'henri.nikku@mongodb.com', 'username': 'henrinikku'}

Message: SERVER-68241 index_tag invalid comparator
Branch: master
https://github.com/mongodb/mongo/commit/b1d634bafebc84fbe820f5f6086bbd2813f546ec

Comment by Alex Neben [ 22/Jul/22 ]

Also happens in https://spruce.mongodb.com/task/mongodb_mongo_master_enterprise_rhel_80_64_bit_dynamic_debug_mode_run_unittests_e37f9d5efff9974a4a66b6a84bf98f24c1052937_22_07_21_22_10_59/tests?execution=0&sortBy=STATUS&sortDir=ASC db_query_test which might be easier to repro / fix

Comment by Alex Neben [ 22/Jul/22 ]

https://github.com/10gen/mongo/pull/6097#discussion_r908923497
Here is "fix" that makes the comparator correct but as billy.donahue@mongodb.com points out it is not the correct fix.

Generated at Thu Feb 08 06:10:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.