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

Sync the journal directory, not its parent

    XMLWordPrintable

    Details

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

      Description

      From [~bruce.lucas@10gen.com] in SERVER-18314:

      Why are we periodically fdatasyncing the dbpath directory, asynchronously wrt the ongoing checkpoint, on a thread which apparently completely blocks things if it gets blocked, but only it seems if the journal is enabled? Theory: the journaling code does an fdatasync on the journal directory whenever it creates a new file to ensure durability of that directory entry; perhaps this code is incorrecly fdatasyncing the dbpath directory instead of the journal directory. As corroborating evidence, I tried doing an strace and couldn't see any evidence that we ever opened the journal directory, so it seems we couldn't be fdatasyncing it. Will continue investigating and open SERVER ticket if appropriate.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                michael.cahill Michael Cahill
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: