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

Add Flow Control mechanism unit/integration testing

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.12
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Storage NYC 2019-05-20
    • 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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              daniel.gottlieb Daniel Gottlieb
              Reporter:
              maria.vankeulen Maria van Keulen
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: