Fix memory leak in __wt_disagg_advance_checkpoint

XMLWordPrintableJSON

      unit-test-hook-tiered on ubuntu2004

      Host: i-0ebaf51f3bcd8bab0
      Project: wiredtiger
      Commit: 7905a2d3
      Please refer to BF(G) Playbook for instructions on handling BF and BFG tickets as well as Auto-Resolution Rules

      Task Logs:

      unit-test-hook-tiered task_log

      Logs:

      "[1756843527:700061][3340:0x7faa03f91cc0], WT_SESSION.close: [WT_VERB_DEFAULT][ERROR]: __wt_scr_discard, 381: scratch buffer allocated and never discarded: __wt_disagg_advance_checkpoint: 1398
      "[1756843688:010031][3340:0x7faa03f91cc0], WT_SESSION.close: [WT_VERB_DEFAULT][ERROR]: __wt_scr_discard, 381: scratch buffer allocated and never discarded: __wt_disagg_advance_checkpoint: 1398
      "[1756843692:398794][3340:0x7faa03f91cc0], WT_SESSION.close: [WT_VERB_DEFAULT][ERROR]: __wt_scr_discard, 381: scratch buffer allocated and never discarded: __wt_disagg_advance_checkpoint: 1398
      

      logs

      unit-test-hook-tiered task_log

      Logs:

      [pid:3140]: FAIL: test_layered23.test_layered23.test_leader_follower(palm)
      ----------------------------------------------------------------------
      [pid:3140]: testtools.testresult.real._StringException: Traceback (most recent call last):
        File "/data/mci/9873fd131a5382eec43904ee55893d27/wiredtiger/test/suite/wttest.py", line 571, in tearDown
          self.captureerr.check(self)
        File "/data/mci/9873fd131a5382eec43904ee55893d27/wiredtiger/test/suite/../py_utility/abstract_test_case.py", line 111, in check
          testcase.fail('unexpected ' + self.desc + ', contains: "' +
        File "/opt/mongodbtoolchain/revisions/8695910c32ef0ee5eecaae4c9ca515b4b6436a40/stow/python3-v5.raI/lib/python3.10/unittest/case.py", line 675, in fail
          raise self.failureException(msg)
      AssertionError: unexpected error output, contains: "[1756843527:700061][3340:0x7faa03f91cc0], WT_SESSION.close: [WT_VERB_DEFAULT][ERROR]: __wt_scr_discard, 381: scratch buffer allocated and never discarded: __wt_disagg_advance_checkpoint: 1398
      "
      ======================================================================
      [pid:3140]: FAIL: test_layered37.test_layered37.test_ping_ingest_table(palm)
      ----------------------------------------------------------------------
      [pid:3140]: testtools.testresult.real._StringException: Traceback (most recent call last):
        File "/data/mci/9873fd131a5382eec43904ee55893d27/wiredtiger/test/suite/wttest.py", line 571, in tearDown
          self.captureerr.check(self)
        File "/data/mci/9873fd131a5382eec43904ee55893d27/wiredtiger/test/suite/../py_utility/abstract_test_case.py", line 111, in check
          testcase.fail('unexpected ' + self.desc + ', contains: "' +
        File "/opt/mongodbtoolchain/revisions/8695910c32ef0ee5eecaae4c9ca515b4b6436a40/stow/python3-v5.raI/lib/python3.10/unittest/case.py", line 675, in fail
          raise self.failureException(msg)
      AssertionError: unexpected error output, contains: "[1756843688:010031][3340:0x7faa03f91cc0], WT_SESSION.close: [WT_VERB_DEFAULT][ERROR]: __wt_scr_discard, 381: scratch buffer allocated and never discarded: __wt_disagg_advance_checkpoint: 1398
      "
      ======================================================================
      [pid:3140]: FAIL: test_layered47.test_layered47.test_layered47(palm)
      ----------------------------------------------------------------------
      [pid:3140]: testtools.testresult.real._StringException: Traceback (most recent call last):
        File "/data/mci/9873fd131a5382eec43904ee55893d27/wiredtiger/test/suite/wttest.py", line 571, in tearDown
          self.captureerr.check(self)
        File "/data/mci/9873fd131a5382eec43904ee55893d27/wiredtiger/test/suite/../py_utility/abstract_test_case.py", line 111, in check
          testcase.fail('unexpected ' + self.desc + ', contains: "' +
        File "/opt/mongodbtoolchain/revisions/8695910c32ef0ee5eecaae4c9ca515b4b6436a40/stow/python3-v5.raI/lib/python3.10/unittest/case.py", line 675, in fail
          raise self.failureException(msg)
      AssertionError: unexpected error output, contains: "[1756843692:398794][3340:0x7faa03f91cc0], WT_SESSION.close: [WT_VERB_DEFAULT][ERROR]: __wt_scr_discard, 381: scratch buffer allocated and never discarded: __wt_disagg_advance_checkpoint: 1398
      "
      ----------------------------------------------------------------------
      Ran 14341 tests in 5487.950s
      

      logs

      unit-test-hook-tiered task_log

      Logs:

      [1756843527:700061][3340:0x7faa03f91cc0], WT_SESSION.close: [WT_VERB_DEFAULT][ERROR]: __wt_scr_discard, 381: scratch buffer allocated and never discarded: __wt_disagg_advance_checkpoint: 1398
      [1756843688:010031][3340:0x7faa03f91cc0], WT_SESSION.close: [WT_VERB_DEFAULT][ERROR]: __wt_scr_discard, 381: scratch buffer allocated and never discarded: __wt_disagg_advance_checkpoint: 1398
      [1756843692:398794][3340:0x7faa03f91cc0], WT_SESSION.close: [WT_VERB_DEFAULT][ERROR]: __wt_scr_discard, 381: scratch buffer allocated and never discarded: __wt_disagg_advance_checkpoint: 1398
      

      logs

            Assignee:
            Jie Chen
            Reporter:
            xgen-buildbaron-user
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: