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

Update test_timestamp09 to use integer comparison of timestamps

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc0, WT3.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage 2017-10-02

      Job failure at:
      http://build.wiredtiger.com:8080/job/wiredtiger-test-timestamp-size/15/console

      With timestamp size 16, test_timestamp09 checks if the oldest timestamp is set to '3', whereas it gets back '03'

              # Oldest timestamp is 3 at the moment, trying to set it to an earlier
              # timestamp is a no-op.
              self.conn.set_timestamp('oldest_timestamp=' + timestamp_str(1))
              self.assertEqual(self.conn.query_timestamp('get=oldest'),
                  timestamp_str(3))
      
      ======================================================================
      FAIL: test_timestamp09.test_timestamp09.test_timestamp_api
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/mnt/fast/jenkins/workspace/wiredtiger-test-timestamp-size/test/suite/test_timestamp09.py", line 125, in test_timestamp_api
          timestamp_str(3))
      AssertionError: '03' != '3'
      

            Assignee:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Reporter:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: