[SERVER-82706] check_metadata_consistency.js should use retriable writes when contacting config server Created: 02/Nov/23  Updated: 02/Jan/24  Resolved: 04/Dec/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.1.0, 7.2.1
Fix Version/s: 7.2.1, 7.3.0-rc0, 7.0.5

Type: Bug Priority: Major - P3
Reporter: Enrico Golfieri Assignee: Pol Pinol
Resolution: Fixed Votes: 0
Labels: car-qw
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Assigned Teams:
Catalog and Routing
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.2, v7.0
Sprint: CAR Team 2023-12-11
Participants:
Linked BF Score: 5
Story Points: 1

 Description   

change_metadata_consistency.js often attempts to access to the config server for inserts or updates in order to force an inconsistency and make sure those would be check by the

{ checkMetadataConsistency ... }

command.

The test seems to access through direct connections to the CSRS in several points such here or here

This can be problematic in case of a stepdown suite, where the insert/update would fail without being retried.

The goal of this ticket is either to:

  • fix all the direct connection with the config server
  • ban the test from stepdown suites

Evaluate if point 2 still make sense. The goal of this jstest seems be the idea of catching some forced inconsistencies and not to simulate a possible user scenario.



 Comments   
Comment by Githook User [ 02/Jan/24 ]

Author:

{'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'}

Message: SERVER-82706 check_metadata_consistency.js should use retriable writes when contacting config server

(cherry picked from commit 494690bc715026b7a8ff9e0f22eed4322957aa5a)
(cherry picked from commit cdcf4625dab215a134394e46ab5a60d7fb136f80)
Branch: v7.2
https://github.com/mongodb/mongo/commit/3b66c10d2ca7aa420c106efb6c6aee76270f89ab

Comment by Githook User [ 15/Dec/23 ]

Author:

{'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'}

Message: SERVER-82706 check_metadata_consistency.js should use retriable writes when contacting config server

(cherry picked from commit 494690bc715026b7a8ff9e0f22eed4322957aa5a)
(cherry picked from commit cdcf4625dab215a134394e46ab5a60d7fb136f80)

GitOrigin-RevId: 405ab12e7132c2d200b6e3d2e15cdecb706070b6
Branch: v7.0
https://github.com/mongodb/mongo/commit/c45255cfb9d8666ee08cca69a7bc9dad5ca47ab8

Comment by Githook User [ 04/Dec/23 ]

Author:

{'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'}

Message: SERVER-82706 check_metadata_consistency.js should use retriable writes when contacting config server

GitOrigin-RevId: 630c1aeec01839ca53c09bbfeacf3421ab6ec74f
Branch: master
https://github.com/mongodb/mongo/commit/494690bc715026b7a8ff9e0f22eed4322957aa5a

Comment by Githook User [ 27/Nov/23 ]

Author:

{'name': 'Pol Pinol Castuera', 'email': 'pol.pinol@mongodb.com', 'username': 'PolPinol'}

Message: SERVER-82706 check_metadata_consistency.js should never connect to the config server for write operations through direct connection
Branch: master
https://github.com/mongodb/mongo/commit/cdcf4625dab215a134394e46ab5a60d7fb136f80

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