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

TaskRunner destroyed prior to task return

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Replication
    • ALL
    • Hide

      Reproduced by return of a non-OK status from loader->init()

      Show
      Reproduced by return of a non-OK status from loader->init()

      See https://github.com/mongodb/mongo/blob/r3.3.14/src/mongo/db/repl/storage_interface_impl.cpp#L250-L291

      A task runner is created that runs a synchronous task to clone a collection. During execution the task runner ownership is moved to the CollectionBulkloaderImpl ('loader') object on line 285.

      If the call to loader->init() fails on line 289, then the runner will be destroyed, prior to returning from the task. This appears to leave the TaskRunner::runSynchronousTask() call/thread blocked, waiting on its 'waitTillDoneCond' condition variable.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: