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

test_compact10.py is not using compact_util

    • Storage Engines
    • 2
    • 2024-08-06 - Withholding Tax

      The compact_util class defined turn_on_bg_compact while test_compact10.py redefines it while this is not needed.
      Suggested changes:

      diff --git a/test/suite/test_compact10.py b/test/suite/test_compact10.py
      index 838d908a31..8440dd5e2d 100644
      --- a/test/suite/test_compact10.py
      +++ b/test/suite/test_compact10.py
      @@ -67,11 +67,6 @@ class test_compact10(backup_base, compact_util):
       
               return uris
       
      -    def turn_on_bg_compact(self, config = ''):
      -        self.session.compact(None, f'background=true,{config}')
      -        while not self.get_bg_compaction_running():
      -            time.sleep(0.1)
      -
           # This test:
           # - Creates a full backup before background compaction is enabled.
           # - Waits for background compaction to compact all the files and create a new full backup.
      

            Assignee:
            zunyi.liu@mongodb.com Zunyi Liu
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: