Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-7330

Fix memory allocation failure in WT_CURSOR insert __realloc_func

    • 5

      Error signature calling:

      [2021/03/20 08:13:22.395] ======================================================================
       [2021/03/20 08:13:22.395] ERROR: test_txn13.test_txn13.test_large_values(2gb) (subunit.RemotedTestCase)
       [2021/03/20 08:13:22.395] test_txn13.test_txn13.test_large_values(2gb)
       [2021/03/20 08:13:22.395] ----------------------------------------------------------------------
       [2021/03/20 08:13:22.395] testtools.testresult.real._StringException: Traceback (most recent call last):
       [2021/03/20 08:13:22.395]   File "/data/mci/81f8e367ac8aff72df9acc5c4cb6644c/wiredtiger/test/suite/test_txn13.py", line 75, in test_large_values
       [2021/03/20 08:13:22.395]     c[k] = value
       [2021/03/20 08:13:22.395]   File "/data/mci/81f8e367ac8aff72df9acc5c4cb6644c/wiredtiger/build_posix/lang/python/wiredtiger/swig_wiredtiger.py", line 443, in __setitem__
       [2021/03/20 08:13:22.395]     if self.insert() != 0:
       [2021/03/20 08:13:22.395] _wiredtiger.WiredTigerError: Cannot allocate memory
       [2021/03/20 08:13:22.396] ----------------------------------------------------------------------
       [2021/03/20 08:13:22.396] Ran 25204 tests in 2957.887s
       [2021/03/20 08:13:22.396] FAILED (errors=1, skipped=206)
       [2021/03/20 08:13:22.396] failure: test_txn13.test_txn13.test_large_values(2gb) [
       [2021/03/20 08:13:22.396] Traceback (most recent call last):
       [2021/03/20 08:13:22.396]   File "/data/mci/81f8e367ac8aff72df9acc5c4cb6644c/wiredtiger/test/suite/wttest.py", line 484, in tearDown
       [2021/03/20 08:13:22.396]     self.captureerr.check(self)
       [2021/03/20 08:13:22.396]   File "/data/mci/81f8e367ac8aff72df9acc5c4cb6644c/wiredtiger/test/suite/wttest.py", line 116, in check
       [2021/03/20 08:13:22.396]     testcase.fail('unexpected ' + self.desc + ', contains: "' +
       [2021/03/20 08:13:22.396]   File "/opt/mongodbtoolchain/revisions/32eb70c47bd9e9759dd05654843feb80461aaef3/stow/python3-v3.7gI/lib/python3.9/unittest/case.py", line 670, in fail
       [2021/03/20 08:13:22.396]     raise self.failureException(msg)
       [2021/03/20 08:13:22.396] AssertionError: unexpected error output, contains: "[1616226998:533197][6669:0x7f95b5c0c740], test_txn13.test_txn13.test_large_values(2gb), file:test_txn13.wt, WT_CURSOR.insert: __realloc_func, 124: memory allocation of 2147483880 bytes failed: Cannot allocate memory
       [2021/03/20 08:13:22.396] "
       [2021/03/20 08:13:22.396] ]

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            etienne.petrel@mongodb.com Etienne Petrel
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: