[SERVER-40307] ssl_cluster_ca.js and ssl_hostname_validation.js time out Created: 22/Mar/19  Updated: 29/Oct/23  Resolved: 25/Mar/19

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.1.10

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
is caused by SERVER-40060 Retry replSetInitiate in ReplSetTest ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

The SSL tests that validate that replica sets cannot form with invalid SSL certificates are timing out after SERVER-40060.

The retry logic I added to ReplSetTest.initiate() in that ticket has a bug: if replSetInitiate or replSetReconfig fails with one of the expected error codes then ReplSetTest considers that success, and doesn't retry the command. In the SSL tests ssl_cluster_ca.js and ssl_hostname_validation.js, replSetReconfig fails with NodeNotFound (because the test deliberately misconfigures TLS) but ReplSetTest considers that a success, and moves to the next stage of ReplSetTest.initiate, which is awaitSecondaries(). That takes 5 minutes to fail. Once it finally does fail, ssl_cluster_ca.js or ssl_hostname_validation.js considers that failure expected, and moves on.

Since there are multiple such calls to ReplSetTest.initiate in each of these jsTests, they hit their Evergreen task timeout before they finish.



 Comments   
Comment by Githook User [ 25/Mar/19 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'username': 'ajdavis', 'email': 'jesse@mongodb.com'}

Message: SERVER-40307 Fix replSetInitiate retry logic
Branch: master
https://github.com/mongodb/mongo/commit/35374f25e2bc3fca9b42958ffc98032cf31f53a1

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