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

Race in CloneDocumentsCatchesInsertErrors can causes it to return an unexpected error

    • Fully Compatible
    • ALL
    • v4.2, v4.0
    • Sharding 2019-12-30, Sharding 2020-01-13, Sharding 2020-01-27, Sharding 2020-02-10, Sharding 2020-02-24
    • 3

      When the inserter thread closes the consumer end (because of intentional error by test) while the producer tries to push.

      To reproduce more easily, simply add a sleepsecs(1) right before this line:

      https://github.com/mongodb/mongo/blob/e6ef0ca20e99b2b3a6682952c2588e6e2d1ba8a9/src/mongo/db/s/migration_destination_manager.cpp#L418

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: