Fix error log handling in test_layered31

XMLWordPrintableJSON

      test_layered31 currently fails in the release mode, because it expects the error log, but the error log is currently available only in the diagnostic mode.

      It fails with the following error:

      [2025/09/18 09:59:14.238] [pid:2754]: testtools.testresult.real._StringException: Traceback (most recent call last):
      [2025/09/18 09:59:14.238]   File "/data/mci/d2dbf70880969c82cdc062ec2484e73c/wiredtiger/test/suite/wttest.py", line 247, in _callTestMethod
      [2025/09/18 09:59:14.238]     method()
      [2025/09/18 09:59:14.238]   File "/data/mci/d2dbf70880969c82cdc062ec2484e73c/wiredtiger/test/suite/test_layered31.py", line 305, in test_layered31
      [2025/09/18 09:59:14.238]     with self.expectedStderrPattern('WT_VERB_ERROR_RETURNS'):
      [2025/09/18 09:59:14.238]   File "/opt/mongodbtoolchain/revisions/8695910c32ef0ee5eecaae4c9ca515b4b6436a40/stow/python3-v5.VVO/lib/python3.10/contextlib.py", line 142, in __exit__
      [2025/09/18 09:59:14.238]     next(self.gen)
      [2025/09/18 09:59:14.238]   File "/data/mci/d2dbf70880969c82cdc062ec2484e73c/wiredtiger/test/suite/wttest.py", line 660, in expectedStderrPattern
      [2025/09/18 09:59:14.238]     self.captureerr.checkAdditionalPattern(self, pat, re_flags, maxchars, ignore_pat)
      [2025/09/18 09:59:14.238]   File "/data/mci/d2dbf70880969c82cdc062ec2484e73c/wiredtiger/test/suite/../py_utility/abstract_test_case.py", line 178, in checkAdditionalPattern
      [2025/09/18 09:59:14.238]     testcase.fail('in ' + self.desc +
      [2025/09/18 09:59:14.238] AssertionError: in error output, expected pattern "WT_VERB_ERROR_RETURNS", but got "[1758201933:147962][2758:0xffffb6aa17c0], WT_CONNECTION.reconfigure: [WT_VERB_DEFAULT][ERROR]: __wti_disagg_conn_config, 1084: Failed to pick up a new checkpoint with config: test: WT_NOTFOUND: item not found
      

            Assignee:
            Peter Macko
            Reporter:
            Peter Macko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: