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

Rely on statistics instead of sleeps when testing background compaction

    • 2
    • BermudaTriangle- 2023-09-05

      In test_compact06, we do:

              self.session.compact(None, 'background=true')
      
              # Need to pause to make sure the signal sent to the background compaction server has been
              # processed.
              time.sleep(2)
      

      We should wait for the stat background_compact_running to be set to 1 instead of sleeping and hoping it has been enabled.

      Furthermore, test_compact08 has been removed, we could rename test_compact09 to test_compact08.

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: