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

Remove MONGO_UNREACHABLE from ScopedMigrationRequest::writeMigration

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.3
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2017-02-13
    • 0

      The line here allows the code to leave the retry for-loop once max retries are exceeded. The scenario where it gets hit is quite rare: insert attempt, DuplicateKey error and find check finds nothing, and this would have to happen twice in a row.

      The MONGO_UNREACHABLE after the loop shouldn't be there (obviously, since it was hit in BF-4593).

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: