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

Race in CloneDocumentsCatchesInsertErrors can causes it to return an unexpected error

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2, v4.0
    • Sprint:
      Sharding 2019-12-30, Sharding 2020-01-13, Sharding 2020-01-27, Sharding 2020-02-10, Sharding 2020-02-24
    • Linked BF Score:
      3

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            tommaso.tocci Tommaso Tocci
            Reporter:
            renctan Randolph Tan
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: