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

Handle read-committed checkpoints during snapshot transactions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.7.0
    • Labels:
      None

      Description

      A recent change to WiredTiger forced metadata checkpoints to be performed at read-committed isolation, rather than whatever isolation level happens to be set in the operation (such at WT_SESSION::create) that triggered the checkpoint.

      Unfortunately, this trips an assertion in the WT_WITH_TXN_ISOLATION macro for snapshot transactions, because the pinned snap_min has been released by the time the checkpoint completes:

      [cpp_unit_test:storage_wiredtiger_record_store_test] 2015-11-01T23:33:58.629-0500 [1446438838:629625][60849:0x7fff748b3180], file:WiredTiger.wt, WT_SESSION.create: src/third_party/wiredtiger/src/meta/meta_track.c, 280: txn_state->id == saved_state.id && (txn_state->snap_min == saved_state.snap_min || saved_state.snap_min == WT_TXN_NONE)
      

        Issue Links

          Activity

          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'agorrod', u'name': u'Alex Gorrod', u'email': u'alexander.gorrod@mongodb.com'}

          Message: Merge pull request #2282 from wiredtiger/WT-2193

          (cherry picked from commit 2f0b3e2)

          WT-2193 Backport 3.0. Handle read-committed metadata checkpoints during snapshot transactions
          Branch: mongodb-3.0
          https://github.com/wiredtiger/wiredtiger/commit/f154aa4619123f68fdc1a4d3a2354777e0038b45

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'agorrod', u'name': u'Alex Gorrod', u'email': u'alexander.gorrod@mongodb.com'} Message: Merge pull request #2282 from wiredtiger/ WT-2193 (cherry picked from commit 2f0b3e2) WT-2193 Backport 3.0. Handle read-committed metadata checkpoints during snapshot transactions Branch: mongodb-3.0 https://github.com/wiredtiger/wiredtiger/commit/f154aa4619123f68fdc1a4d3a2354777e0038b45
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'agorrod', u'name': u'Alex Gorrod', u'email': u'alexander.gorrod@mongodb.com'}

          Message: Merge pull request #2282 from wiredtiger/WT-2193

          (cherry picked from commit 2f0b3e2)

          WT-2193 Backport 3.0. Handle read-committed metadata checkpoints during snapshot transactions
          Branch: mongodb-3.0
          https://github.com/wiredtiger/wiredtiger/commit/f154aa4619123f68fdc1a4d3a2354777e0038b45

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'agorrod', u'name': u'Alex Gorrod', u'email': u'alexander.gorrod@mongodb.com'} Message: Merge pull request #2282 from wiredtiger/ WT-2193 (cherry picked from commit 2f0b3e2) WT-2193 Backport 3.0. Handle read-committed metadata checkpoints during snapshot transactions Branch: mongodb-3.0 https://github.com/wiredtiger/wiredtiger/commit/f154aa4619123f68fdc1a4d3a2354777e0038b45
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'michaelcahill', u'name': u'Michael Cahill', u'email': u'michael.cahill@mongodb.com'}

          Message: Merge pull request #2429 from wiredtiger/WT-2193-backport

          WT-2193 Backport 3.0. Handle read-committed metadata checkpoints during snapshot transactions
          Branch: mongodb-3.0
          https://github.com/wiredtiger/wiredtiger/commit/cae5fcf57a7b13d742f687f3f064574a004d0537

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'michaelcahill', u'name': u'Michael Cahill', u'email': u'michael.cahill@mongodb.com'} Message: Merge pull request #2429 from wiredtiger/ WT-2193 -backport WT-2193 Backport 3.0. Handle read-committed metadata checkpoints during snapshot transactions Branch: mongodb-3.0 https://github.com/wiredtiger/wiredtiger/commit/cae5fcf57a7b13d742f687f3f064574a004d0537
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'michaelcahill', u'name': u'Michael Cahill', u'email': u'michael.cahill@mongodb.com'}

          Message: Merge pull request #2429 from wiredtiger/WT-2193-backport

          WT-2193 Backport 3.0. Handle read-committed metadata checkpoints during snapshot transactions
          Branch: mongodb-3.0
          https://github.com/wiredtiger/wiredtiger/commit/cae5fcf57a7b13d742f687f3f064574a004d0537

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'michaelcahill', u'name': u'Michael Cahill', u'email': u'michael.cahill@mongodb.com'} Message: Merge pull request #2429 from wiredtiger/ WT-2193 -backport WT-2193 Backport 3.0. Handle read-committed metadata checkpoints during snapshot transactions Branch: mongodb-3.0 https://github.com/wiredtiger/wiredtiger/commit/cae5fcf57a7b13d742f687f3f064574a004d0537
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'name': u'Ramon Fernandez', u'email': u'ramon@mongodb.com'}

          Message: Import wiredtiger-wiredtiger-mongodb-3.0.8-15-gcae5fcf.tar.gz from wiredtiger branch mongodb-3.0

          ref: a1ddc5e..cae5fcf

          WT-2193 Handle read-committed checkpoints during snapshot transactions
          WT-2196 Fix size only statistics cursors with LSM
          WT-2253 eviction could prioritize any page with a WT_READGEN_OLDEST generation
          Branch: v3.0
          https://github.com/mongodb/mongo/commit/f23290ec159ca606a65da76654703f1210118726

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'name': u'Ramon Fernandez', u'email': u'ramon@mongodb.com'} Message: Import wiredtiger-wiredtiger-mongodb-3.0.8-15-gcae5fcf.tar.gz from wiredtiger branch mongodb-3.0 ref: a1ddc5e..cae5fcf WT-2193 Handle read-committed checkpoints during snapshot transactions WT-2196 Fix size only statistics cursors with LSM WT-2253 eviction could prioritize any page with a WT_READGEN_OLDEST generation Branch: v3.0 https://github.com/mongodb/mongo/commit/f23290ec159ca606a65da76654703f1210118726

            People

            • Assignee:
              michael.cahill Michael Cahill
              Reporter:
              michael.cahill Michael Cahill
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: