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

add support for flushing the transaction log.

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.7.0
    • Labels:
      None
    • # Replies:
      28
    • Last comment by Customer:
      true

      Description

      A possible fix for SERVER-20176 requires some way to flush the logs explicitly.

      Geert Bosch tried a WT_SESSION.begin_transaction and WT_SESSION.commit_transaction pair, with commit_transaction configuring sync=on, but that won't work unless there are writes included in the transaction.

      Sue LoVerso suggests it might be possible to make that work (and it's not unreasonable since the documentation does imply sync=on flushes all log records. (The documentation says "whether to sync the log on every commit by default", without any discussion of a write being required.)

      Sue LoVerso also suggested WT_SESSION.transaction_sync could be enhanced to provide this functionality, perhaps calling that method without any configuration would flush the log.

      Sue LoVerso, Michael Cahill

        Issue Links

          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: WT-2104 KNF in 3.0 unrelated to log_flush changes.
          Branch: mongodb-3.0
          https://github.com/wiredtiger/wiredtiger/commit/2db489857427374fb8beda8ddb5d310645ea8e6c

          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: WT-2104 KNF in 3.0 unrelated to log_flush changes. Branch: mongodb-3.0 https://github.com/wiredtiger/wiredtiger/commit/2db489857427374fb8beda8ddb5d310645ea8e6c
          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 #2198 from wiredtiger/log-flush-3.0

          WT-2104 Log flush 3.0
          Branch: mongodb-3.0
          https://github.com/wiredtiger/wiredtiger/commit/3861d0192881e03fc6af98ecf8100d775f9a3d18

          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 #2198 from wiredtiger/log-flush-3.0 WT-2104 Log flush 3.0 Branch: mongodb-3.0 https://github.com/wiredtiger/wiredtiger/commit/3861d0192881e03fc6af98ecf8100d775f9a3d18
          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: WT-2104 Write up commit and log_flush options.
          Also add large default value for transaction_sync.
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/d2111ffac07cedd7559176d45b9704b39eece507

          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: WT-2104 Write up commit and log_flush options. Also add large default value for transaction_sync. Branch: develop https://github.com/wiredtiger/wiredtiger/commit/d2111ffac07cedd7559176d45b9704b39eece507
          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: WT-2104 Update doc to mention transaction_sync method.
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/d8f3b0e1e2afee49972401ff01609b8781df2fad

          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: WT-2104 Update doc to mention transaction_sync method. Branch: develop https://github.com/wiredtiger/wiredtiger/commit/d8f3b0e1e2afee49972401ff01609b8781df2fad
          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 #2199 from wiredtiger/log-flush-docs

          WT-2104 Write up commit and log_flush options.
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/90d9d9690b627f722ac895407be9deaa360f5e21

          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 #2199 from wiredtiger/log-flush-docs WT-2104 Write up commit and log_flush options. Branch: develop https://github.com/wiredtiger/wiredtiger/commit/90d9d9690b627f722ac895407be9deaa360f5e21

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                1 year, 27 weeks, 5 days ago
                Date of 1st Reply: