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

API to asynchronously sync a transaction

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.6.1
    • Labels:
      None

      Description

      Mathias Stearn asks:
      Currently, we implement our "j:true" write concern by passing "sync=true" to begin_transaction(), which causes commit_transaction() to block until durable. Unfortunately, this doesn't allow us to do anything else on that thread while we wait. In particular, when a user specifies both "w:majority" and "j:true" it would be nice to be able to wait for both replication and journaling at the same time.


      This is a reasonable request and I'll look into an API that implements this. Although not directly related it is in the same ballpark as WT-1754.

        Activity

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

        Author:

        {u'username': u'sueloverso', u'name': u'Susan LoVerso', u'email': u'sue@wiredtiger.com'}

        Message: Add example code for background sync. WT-1908
        Branch: develop
        https://github.com/wiredtiger/wiredtiger/commit/b73ef6808942deaad5f37fd16bcb4cf371b197ca

        Show
        xgen-internal-githook Githook User added a comment - Author: {u'username': u'sueloverso', u'name': u'Susan LoVerso', u'email': u'sue@wiredtiger.com'} Message: Add example code for background sync. WT-1908 Branch: develop https://github.com/wiredtiger/wiredtiger/commit/b73ef6808942deaad5f37fd16bcb4cf371b197ca
        Hide
        xgen-internal-githook Githook User added a comment -

        Author:

        {u'username': u'sueloverso', u'name': u'Susan LoVerso', u'email': u'sue@wiredtiger.com'}

        Message: Refactor setting background sync LSN to its own functions. WT-1908
        Branch: develop
        https://github.com/wiredtiger/wiredtiger/commit/78a2e9c80a1287a07983fa1b0351f1dcf08e0b22

        Show
        xgen-internal-githook Githook User added a comment - Author: {u'username': u'sueloverso', u'name': u'Susan LoVerso', u'email': u'sue@wiredtiger.com'} Message: Refactor setting background sync LSN to its own functions. WT-1908 Branch: develop https://github.com/wiredtiger/wiredtiger/commit/78a2e9c80a1287a07983fa1b0351f1dcf08e0b22
        Hide
        xgen-internal-githook Githook User added a comment -

        Author:

        {u'username': u'sueloverso', u'name': u'Susan LoVerso', u'email': u'sue@wiredtiger.com'}

        Message: Make default transaction_sync timeout to be forever. WT-1908
        Branch: develop
        https://github.com/wiredtiger/wiredtiger/commit/d3b914224f99eb90ba574c72cf7d6b36a0264718

        Show
        xgen-internal-githook Githook User added a comment - Author: {u'username': u'sueloverso', u'name': u'Susan LoVerso', u'email': u'sue@wiredtiger.com'} Message: Make default transaction_sync timeout to be forever. WT-1908 Branch: develop https://github.com/wiredtiger/wiredtiger/commit/d3b914224f99eb90ba574c72cf7d6b36a0264718
        Hide
        xgen-internal-githook Githook User added a comment -

        Author:

        {u'username': u'sueloverso', u'name': u'Susan LoVerso', u'email': u'sue@wiredtiger.com'}

        Message: The log_close_server handles more than closing. Rename function and
        fields. WT-1908
        Branch: develop
        https://github.com/wiredtiger/wiredtiger/commit/f1be38004d13c02a4b30ff5db78689fce03778ef

        Show
        xgen-internal-githook Githook User added a comment - Author: {u'username': u'sueloverso', u'name': u'Susan LoVerso', u'email': u'sue@wiredtiger.com'} Message: The log_close_server handles more than closing. Rename function and fields. WT-1908 Branch: develop https://github.com/wiredtiger/wiredtiger/commit/f1be38004d13c02a4b30ff5db78689fce03778ef
        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 #1943 from wiredtiger/transaction-background

        Add a background transaction sync mechanism. WT-1908
        Branch: develop
        https://github.com/wiredtiger/wiredtiger/commit/5258cbc9c39616778b3a7fd9f3f5bc37ebb24e0d

        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 #1943 from wiredtiger/transaction-background Add a background transaction sync mechanism. WT-1908 Branch: develop https://github.com/wiredtiger/wiredtiger/commit/5258cbc9c39616778b3a7fd9f3f5bc37ebb24e0d

          People

          • Assignee:
            sue.loverso Sue LoVerso
            Reporter:
            sue.loverso Sue LoVerso
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: