even with journaling on, there are cases when restarting will say "unclean shutdown use repair"

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Usability
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The issue is that even with journaling on, there are times when mongod does not detect journal at restart:

      • from startup until 1 write is done to db
      • after an fsynclock until unlock and 1 write is done

      This mean that if the database has unclean shutdown at that time, it will say "unclean shutdown use repair" at next start.
      Also when restoring from a backup it will give the same error.
      This is especially visible then doing backup with fsyncLock, since restoring from the backup will give the error.

      This is only a usability issue since mongod.lock can be deleted safely.
      The best solution seems to be to always make the journal look active when mongod uses journal.
      fsyncLock should just update the lsn to point to the end of the journal, but not clear the whole journal.

            Assignee:
            Unassigned
            Reporter:
            Antoine Girbal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: