Race in CloneDocumentsCatchesInsertErrors can causes it to return an unexpected error

XMLWordPrintableJSON

    • 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: