Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-40447

Add Flow Control mechanism unit/integration testing

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.12
    • None
    • None
    • None
    • Fully Compatible
    • Storage NYC 2019-05-20
    • 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.

      Attachments

        Activity

          People

            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            maria.vankeulen@mongodb.com Maria van Keulen
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: