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

Increase frequency of log slot sync

    Details

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

      Description

      The logging code keeps records in memory until a slot is closed. If there is limited activity in a database slots aren't closed regularly, so the log server periodically flushes the active slot.

      The flush currently happens once per second (along with log archiving and preallocation).

      That can lead to losing up to a second worth of log records on an unclean shutdown. I think it would be better if that period was shorter. Perhaps the loop could be restructured so that the active slot is flushed 10 times per second, but prealloc and archive still happen once per second.

        Issue Links

          Activity

          Hide
          sue.loverso Sue LoVerso added a comment -
          Show
          sue.loverso Sue LoVerso added a comment - This is fixed in PR https://github.com/wiredtiger/wiredtiger/pull/2172 .
          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-2085 Run some of the log_server threads operations more frequently
          than others. In particular, flush the log slot 20x per second.
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/da651518254b3671261c5b9fdcfdeeb39a7b388b

          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-2085 Run some of the log_server threads operations more frequently than others. In particular, flush the log slot 20x per second. Branch: develop https://github.com/wiredtiger/wiredtiger/commit/da651518254b3671261c5b9fdcfdeeb39a7b388b
          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-2085 - Fix typo in Windows code.
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/b5b51285e9f6a47086f60bf1cb9cac27266a9bbe

          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-2085 - Fix typo in Windows code. Branch: develop https://github.com/wiredtiger/wiredtiger/commit/b5b51285e9f6a47086f60bf1cb9cac27266a9bbe
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'sueloverso', u'name': u'sueloverso', u'email': u'sue@mongodb.com'}

          Message: Merge pull request #2172 from wiredtiger/wt-2085

          WT-2085 Run some of the log_server threads operations more frequently
          Branch: develop
          https://github.com/wiredtiger/wiredtiger/commit/6008b4101323dd11aa65849d3464c568bcdec270

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'sueloverso', u'name': u'sueloverso', u'email': u'sue@mongodb.com'} Message: Merge pull request #2172 from wiredtiger/wt-2085 WT-2085 Run some of the log_server threads operations more frequently Branch: develop https://github.com/wiredtiger/wiredtiger/commit/6008b4101323dd11aa65849d3464c568bcdec270

            People

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

              Dates

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