Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-45642

A syncdelay value of 0 causes the WiredTigerCheckpointThread to run as often as possible

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc9, 4.7.0
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Execution Team 2020-06-01, Execution Team 2020-06-15

      The help text for the --syncdelay command line argument (which populates wiredTigerGlobalOptions.checkpointDelaySecs) indicates that a value of 0 will stop the checkpoint thread from running at all.

      In the actual thread, though, it gets interpreted as a delay of 0, causing it to loop as fast as it can:
      https://github.com/mongodb/mongo/blob/b758eb90dd982460af62fbb61737f935dae9b828/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp#L379-L381

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: