[SERVER-34667] data_consistency_checks.js incorrectly assumes that the config.mongos collection always exists Created: 25/Apr/18  Updated: 29/Oct/23  Resolved: 26/Apr/18

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.4.15, 3.6.5, 4.0.0-rc0

Type: Bug Priority: Minor - P4
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
is caused by SERVER-33068 run_check_repl_dbhash.js hook exits w... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.6, v3.4
Sprint: TIG 2018-05-07
Participants:
Linked BF Score: 10

 Description   

It is possible for the runDataConsistencyChecks() function to run prior to the "sharding uptime reporter" background thread creating the config.mongos collection. The test should be changed to ensure that the config collection it is interested in running the "validate" command against actually exists prior to calling runDataConsistencyChecks().



 Comments   
Comment by Githook User [ 28/Apr/18 ]

Author:

{'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet', 'name': 'Max Hirschhorn'}

Message: SERVER-34667 Run validate command against config.collections.

Changes the data_consistency_checks.js test to shard a collection to
ensure the config.collections collection exists.

(cherry picked from commit 75e45cbf7437cef425f7c01b3099475e0e01f478)
Branch: v3.4
https://github.com/mongodb/mongo/commit/3d1d7394014e56173290661c1901fed5be1cb554

Comment by Githook User [ 28/Apr/18 ]

Author:

{'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet', 'name': 'Max Hirschhorn'}

Message: SERVER-34667 Run validate command against config.collections.

Changes the data_consistency_checks.js test to shard a collection to
ensure the config.collections collection exists.

(cherry picked from commit 75e45cbf7437cef425f7c01b3099475e0e01f478)
Branch: v3.6
https://github.com/mongodb/mongo/commit/1e145a801621833d656c65a1639476e6b5f1d026

Comment by Githook User [ 26/Apr/18 ]

Author:

{'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet', 'name': 'Max Hirschhorn'}

Message: SERVER-34667 Run validate command against config.collections.

Changes the data_consistency_checks.js test to shard a collection to
ensure the config.collections collection exists.
Branch: master
https://github.com/mongodb/mongo/commit/75e45cbf7437cef425f7c01b3099475e0e01f478

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