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

Transaction with 20,000 keys of 150bytes fail with WT_ROLLBACK

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • Backlog
    • Affects Version/s: WT3.1.0, WT3.2.0
    • Component/s: Test Python
    • None
    • Environment:
      Ubuntu
    • 3
    • Storage Engines 2019-05-20

      Retrying doesn't solve the issue.

      Here is the base test

      import wiredtiger
      import os
      
      wt = wiredtiger.wiredtiger_open("wt", "create,log=(enabled=true)")
      session = wt.open_session()
      session.create("table:test", "key_format=u,value_format=u")
      cursor = session.open_cursor("table:test")index = 0
      while True:
          index += 1
          print('transaction', index)
          session.begin_transaction()
          # 3 000 000 octet big transaction, with data mostly in keys
          for i in range(20000):
              key = os.urandom(150)
              cursor.set_key(key)
              cursor.set_value(b"\x01")
              cursor.insert()
          session.commit_transaction()
      
      

            Assignee:
            alex.cameron@mongodb.com Alex Cameron (Inactive)
            Reporter:
            amz3 Amirouche
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: