disagg: Fix assertion failure with base_write_gen in test_hs21.py

XMLWordPrintableJSON

    • Storage Engines - Foundations
    • None
    • None

      The test test_hs21.py was recently enabled under the disagg hook and now fails the macOS build variant occasionally with the following trace:

      [2026/03/18 09:41:30.264] ======================================================================
      [2026/03/18 09:41:30.264] [pid:24883]: FAIL: test_hs21.test_hs21.test_hs(string-row)
      [2026/03/18 09:41:30.264] ----------------------------------------------------------------------
      [2026/03/18 09:41:30.264] [pid:24883]: testtools.testresult.real._StringException: Traceback (most recent call last):
      [2026/03/18 09:41:30.264]   File "/Users/ec2-user/data/mci/c5755be948fb392d4814a79c42c07153/wiredtiger/test/suite/wttest.py", line 161, in wrapper
      [2026/03/18 09:41:30.264]     return func(self, *args, **kwargs)[2026/03/18 09:41:30.264]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [2026/03/18 09:41:30.264]   File "/Users/ec2-user/data/mci/c5755be948fb392d4814a79c42c07153/wiredtiger/test/suite/wttest.py", line 309, in _callTestMethod
      [2026/03/18 09:41:30.264]     method()
      [2026/03/18 09:41:30.264]   File "/Users/ec2-user/data/mci/c5755be948fb392d4814a79c42c07153/wiredtiger/test/suite/test_hs21.py", line 214, in test_hs
      [2026/03/18 09:41:30.264]     self.assertEqual(initial_base_write_gen, base_write_gen)
      [2026/03/18 09:41:30.264]   File "/Library/Frameworks/Python.Framework/Versions/3.11/lib/python3.11/unittest/case.py", line 873, in assertEqual
      [2026/03/18 09:41:30.264]     assertion_func(first, second, msg=msg)
      [2026/03/18 09:41:30.264]   File "/Library/Frameworks/Python.Framework/Versions/3.11/lib/python3.11/unittest/case.py", line 866, in _baseAssertEqual
      [2026/03/18 09:41:30.264]     raise self.failureException(msg)
      [2026/03/18 09:41:30.264] AssertionError: 1 != 2
      [2026/03/18 09:41:30.264] ---------------------------------------------------------------------- 

      This ticket is to investigate this failure, identify whether it lies within the code or in the test, and either apply a fix or skip it under the disagg hook.

            Assignee:
            Alexander Pullen
            Reporter:
            Alexander Pullen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: