-
Type: Build Failure
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Test Python
-
Storage Engines
-
11
-
3
-
Nick - 2024-04-30
The chunk cache Python tests use statistics to provide guarantees about what is or isn't in the chunk cache. Some of the maths around this accidentally uses floating point numbers when they should be integers. For example:
[2024/04/22 09:57:33.523] ====================================================================== [2024/04/22 09:57:33.523] [pid:4954]: FAIL: test_chunkcache03.test_chunkcache03.test_chunkcache03(row_string.in-memory) [2024/04/22 09:57:33.523] ---------------------------------------------------------------------- [2024/04/22 09:57:33.523] [pid:4954]: testtools.testresult.real._StringException: Traceback (most recent call last): [2024/04/22 09:57:33.523] File "/data/mci/034ce14fd48c1fbc3e7d6ea08e20950b/wiredtiger/test/suite/wttest.py", line 233, in _callTestMethod [2024/04/22 09:57:33.523] method() [2024/04/22 09:57:33.523] File "/data/mci/034ce14fd48c1fbc3e7d6ea08e20950b/wiredtiger/test/suite/test_chunkcache03.py", line 123, in test_chunkcache03 [2024/04/22 09:57:33.523] self.assertEqual(total_chunks/pinned_chunks, 2) [2024/04/22 09:57:33.523] AssertionError: 2.0625 != 2 [2024/04/22 09:57:33.523] ----------------------------------------------------------------------
The scope of this ticket is to revisit this calculation, and others like it in the other chunk cache tests, and check if they should be using integer division.