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

no rollback of collection version on soft-fail migration commit (findOne::prepare failed)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.3
    • Affects Version/s: 2.4.4
    • Component/s: None
    • Labels:
      None
    • ALL
    • Hide

      Fail a migration version write using findOne::prepare(), try migrating again.

      Show
      Fail a migration version write using findOne::prepare(), try migrating again.

      On writing the version change to the config server in the migration critical section, sometimes the "prepare()" fails before we write the change. Since no data was changed, we can recover locally by re-donating the chunk back to the ShardChunkManager of the from-side shard. The shard version is reset correctly, but the collection version is not, resulting in further chunk diffs failing and the version locked to the last-migrated version.

      No impact on non-metadata operations, since the shard version and chunks are correct, but further migrations cannot proceed.

      Affects version 2.4 since previously this resulted in immediate shutdown. Unsure yet if the same problem affects master.

            Assignee:
            greg_10gen Greg Studer
            Reporter:
            greg_10gen Greg Studer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: