[SERVER-46868] Wait for exhaust stream to finish closing before asserting in exhaust isMaster integration tests Created: 13/Mar/20  Updated: 29/Oct/23  Resolved: 24/Mar/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 4.5 Required, 4.4.0
Fix Version/s: 4.4.0-rc0, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Jason Chan Assignee: Jason Chan
Resolution: Fixed Votes: 0
Labels: None
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:
v4.4
Sprint: Repl 2020-03-23, Repl 2020-04-06
Participants:
Linked BF Score: 20

 Description   

The ASSERT here fails because the status returned is OK when we expect it not to be. Since this failure happens very rarely, I believe it might be because there can be a delay where the exhaust stream is not closed yet. We might have to add some 'waitFor' function to keep checking to make sure the exhaust connection gets closed eventually.



 Comments   
Comment by Githook User [ 26/Mar/20 ]

Author:

{'email': 'jason.chan@10gen.com', 'name': 'Jason Chan', 'username': 'jasonjhchan'}

Message: SERVER-46868 Wait for exhaust stream to finish closing before asserting in ExhaustIsMasterMetricDecrementsOnNewOpAfterTerminatingExhaustStream

(cherry picked from commit 35c0048f8b01429526de0cabbe34d9c8dddf9f43)
Branch: v4.4
https://github.com/mongodb/mongo/commit/dbf2a00a845c3d656b078cb2a6ed9fa546057022

Comment by Githook User [ 24/Mar/20 ]

Author:

{'name': 'Jason Chan', 'username': 'jasonjhchan', 'email': 'jason.chan@10gen.com'}

Message: SERVER-46868 Wait for exhaust stream to finish closing before asserting in ExhaustIsMasterMetricDecrementsOnNewOpAfterTerminatingExhaustStream
Branch: master
https://github.com/mongodb/mongo/commit/35c0048f8b01429526de0cabbe34d9c8dddf9f43

Generated at Thu Feb 08 05:12:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.