-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Test Python
-
None
-
Storage Engines
-
2
-
StorEng - 2025-02-28
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.