disagg: Fix layered python test prepare03 that fails uri assertEquals

XMLWordPrintableJSON

    • Storage Engines - Transactions
    • None
    • None

      There is a test failure in `test_prepare03.py` when run with the disagg hook:

      $ python3 ../test/suite/run.py --hook disagg -v 2 test_prepare03 -s 3
      [pid:554744]: Traceback (most recent call last):
        File "/home/ubuntu/wiredtiger/test/suite/wttest.py", line 161, in wrapper
          return func(self, *args, **kwargs)
        File "/home/ubuntu/wiredtiger/test/suite/wttest.py", line 309, in _callTestMethod
          method()
        File "/home/ubuntu/wiredtiger/test/suite/test_prepare03.py", line 80, in test_prepare_cursor
          self.assertEqual(cursor.uri, tablearg)
      AssertionError: 'layered:test_prepare_cursor' != 'table:test_prepare_cursor'

      The issue here is that the hook substitutes the layered: prefix into the uri during self.session.create, but the local tablearg variable is based on the original table: prefixed uri.

      We should skip this assertEqual when running the disagg hook, like we do in test_cursor01.py:

      if not self.runningHook('disagg'):            
           self.assertEqual(cursor.uri, tablearg) 

       

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Alexander Pullen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: