Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-11035

Fix out of date comment in test_sweep01.py

    • Type: Icon: Technical Debt Technical Debt
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • WT11.2.0, 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      test_sweep01.py includes the following comment during the loop while it waits for sweep to close handles:

      # We've configured checkpoints to run every 5 seconds, sweep server to
      # run every 2 seconds and idle time to be 6 seconds. It should take
      # about 8 seconds for a handle to be closed. Sleep for double to be
      # safe. 

      The associated code has changed in several ways and the comment should be updated to reflect this:

      • The test no longer runs automatic checkpoints
      • The sweep server runs every second
      • The idle time was reduced to 3 seconds
      • The previous two points mean we expect a handle to be closed after 4 seconds
      • The code doesn't sleep for double 4 seconds. Instead uses stats to check sweep progress until the expected handles are closed.

       

            Assignee:
            keith.smith@mongodb.com Keith Smith
            Reporter:
            keith.smith@mongodb.com Keith Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: