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

Increase frequency of log slot sync

    Details

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

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sue.loverso Sue LoVerso
                Reporter:
                alexander.gorrod Alexander Gorrod
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: