[SERVER-40447] Add Flow Control mechanism unit/integration testing Created: 02/Apr/19  Updated: 29/Oct/23  Resolved: 20/May/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.12

Type: Task Priority: Major - P3
Reporter: Maria van Keulen Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-57273 remove the flow_control_replica_set.j... Closed
Backwards Compatibility: Fully Compatible
Sprint: Storage NYC 2019-05-20
Participants:
Linked BF Score: 18

 Description   

The unit test should verify that the function that computes the amount of tickets to allocate produces the expected result, given a simulated set of inputs.

The integration test should be a jstest and verify that, if the Flow Control mechanism were to calculate that the target number of tickets it allocates in any given period of one second is some number, e.g., 5,000, the rate of write operations per second should approximately equal 5,000, with some margin of error due to potential slow machines. Ensuring the Flow Control mechanism assigns 5,000 tickets per second can be accomplished with a fail point. The test should issue periodic inserts, updates, and deletes. At this time, only singular writes should be tested, as testing batch writes and multi updates may cause the test to be less reliable and would increase the complexity of the test.

The integration test should also verify that the statistics reported inĀ SERVER-39848 are as expected.



 Comments   
Comment by Githook User [ 20/May/19 ]

Author:

{'email': 'daniel.gottlieb@mongodb.com', 'name': 'Daniel Gottlieb', 'username': 'dgottlieb'}

Message: SERVER-40447: Add FlowControl unittests and jstests.
Branch: master
https://github.com/mongodb/mongo/commit/b5236dd0491dbb0b70c3e3b38c2653214943e849

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