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

Always allow log archiving in WiredTiger

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.0.0-rc6, 4.1.1
    • Storage, WiredTiger
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • Storage NYC 2018-06-18

    Description

      The code handling clean shutdown with a version downgrade currently disables log archiving in WiredTiger - that causes WiredTiger to leave log files present in multiple different formats, which will lead to issues in terms of checking version compatibility when starting up databases with earlier versions of MongoDB.

      The particular code in question is in WiredTigerKVEngine::cleanShutdown

      The archive=false setting has been passed since the code was added. There was a conversation in the code review process, which indicates that was done to enable manual checking during development.

      I think it's better to allow WiredTiger to remove the previous version log files when downgrading, so the downgrade can leave a database in a fully downgraded state.

      Attachments

        Issue Links

          Activity

            People

              daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
              alexander.gorrod@mongodb.com Alexander Gorrod
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: