The check for obsolete data stats should not use assertGreaterEqual

XMLWordPrintableJSON

    • Storage Engines
    • StorEng - 2025-02-28
    • 2

      Our cc tests rely on this check:

          # Trigger checkpoint clean up and check it has visited and removed pages.
          def check_cc_stats(self, ckpt_name = ""):
              self.wait_for_cc_to_run(ckpt_name=ckpt_name)
              c = self.session.open_cursor('statistics:')
              self.assertGreaterEqual(c[stat.conn.checkpoint_cleanup_pages_visited][2], 0)
              self.assertGreaterEqual(c[stat.conn.checkpoint_cleanup_pages_removed][2], 0)
              c.close()
      

      Using assertGreaterEqual does not seem right, as a stat will always be 0 at least. We should check the stats are greater than 0.

              Assignee:
              Etienne Petrel
              Reporter:
              Etienne Petrel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: