[SERVER-71092] shard_id_test.cpp relies on a pure behavior of std::string::compare function Created: 04/Nov/22  Updated: 29/Oct/23  Resolved: 11/Nov/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.15, 6.0.4, 6.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Sergi Mateo Bellido Assignee: Sergi Mateo Bellido
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0, v5.0
Sprint: Sharding EMEA 2022-11-14
Participants:
Linked BF Score: 30

 Description   

We cannot assume that the result of std::string::compare will be the same if the input arguments are always the same.

We need to change these tests.



 Comments   
Comment by Githook User [ 11/Nov/22 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-71092 Fixing a sharding test
Branch: v6.0
https://github.com/mongodb/mongo/commit/88f523290d92ac4a12ec3d55025f63ec36fadb72

Comment by Githook User [ 11/Nov/22 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-71092 Fixing a sharding test
Branch: v5.0
https://github.com/mongodb/mongo/commit/4c57f0889744e8d7523f86dffcf41394913033b9

Comment by Githook User [ 11/Nov/22 ]

Author:

{'name': 'Sergi Mateo Bellido', 'email': 'sergi.mateo-bellido@mongodb.com', 'username': 'smateo'}

Message: SERVER-71092 Fixing a sharding test
Branch: master
https://github.com/mongodb/mongo/commit/29e83c1741e5a27d950576f10077cd972d6285fc

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