-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Correctness
-
Fully Compatible
-
2025-03-04
-
200
-
None
-
None
-
None
-
None
-
None
-
None
-
None
A bunch of resmoke hooks (but probably not only hooks) are not able to connect to the node in BF-20010. Some particular lines where it fails, but most likely not the full list:
https://github.com/10gen/mongo/blob/aabc1a93d2167a4ac5b60adc4cc733a45f4625e4/jstests/hooks/run_validate_collections_background.js#L60
https://github.com/10gen/mongo/blob/1c0abd198776e4da356ff1483ce444e762a012fd/jstests/hooks/run_dbcheck_background.js#L32
https://github.com/10gen/mongo/blob/89dd69676156c78fde985f0105b82a9b32db0dc7/jstests/hooks/validate_collections.js#L138
Possible fixes:
- Retry "new Mongo(...)" in case of connections errors
- Globally - in these patches (1, 2) is a rough attempt to override it globally for the whole resmoke (similarly to https://github.com/10gen/mongo/blob/ea7c5c3d8fce4468b0590638b2b4c5b9dcd071a1/jstests/libs/override_methods/enable_grpc_on_connect.js), but some tests got failed
- In particular places in resmoke hooks - this way tests won't fail, but this would require to fix it in multiple places, that would need to be identified
- Increase the connection timeout for "new Mongo(...)"