[SERVER-45551] BF Day: delayMessagesFrom() doesn't delay messages Created: 14/Jan/20  Updated: 29/Oct/23  Resolved: 08/Oct/20

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 4.3.2
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Richard Samuels (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

You can prove it with the following simple JS script:

var st = new ShardingTest({shards: {rs0: {nodes: 2}}, mongos: 1, config: 1, useBridge: true});
// Delay messages Primary -> Secondary (12000 ms)
st.rs0.getSecondary().delayMessagesFrom(st.rs0.getPrimary(),12000);
// Insert using both the replica nodes
assert.commandFailed(st.s0.getCollection('testDB.cll').insert({test: 5}, {writeConcern: {w: 2, wtimeout: 4000}}));

The last insert works but it shouldn't.

Sprint: STM 2020-10-05, STM 2020-10-19
Participants:
Linked BF Score: 31
Story Points: 0

 Description   

I've noticed that delayMessagesFrom() is actually not delaying messages between replica node of the same shard.

This function is currently used by just one test and the code of the function is 4 years old now.



 Comments   
Comment by Githook User [ 13/Oct/20 ]

Author:

{'name': 'Richard Samuels', 'email': 'richard.l.samuels@gmail.com', 'username': 'richardsamuels'}

Message: SERVER-45551 Shield mongobridge tests from primary step downs by increasing election timeout
Branch: master
https://github.com/mongodb/mongo/commit/58f3065958b4a40e4ee88f98b588a5b9210876af

Comment by Githook User [ 08/Oct/20 ]

Author:

{'name': 'Richard Samuels', 'email': 'richard.l.samuels@gmail.com', 'username': 'richardsamuels'}

Message: SERVER-45551 Add assertions to ensure test commands are enabled when using mongobridge functions that require it
Branch: master
https://github.com/mongodb/mongo/commit/70efbd4fbad2183ec1f503efef2669e5698bada3

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