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

Stepdown under ScopeGuard causes MapReduce to terminate when attempting to clean up temporary collections

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: MapReduce
    • Labels:
      None
    • Operating System:
      ALL
    • Linked BF Score:
      61

      Description

      During MapReduceCommand::errMsgRun.

      • We create an ObjScopeGuardImpl0 via ON_BLOCK_EXIT_OBJ on line 1434 here.
      • Upon destruction, this guard will run State::dropTempCollections.
      • During execution of the block which we have scopeguarded, we step down from Primary:

        [ShardedClusterFixture:job0:shard0:node0] 2018-05-31T14:55:41.662+0000 I COMMAND [conn362] Attempting to step down in response to replSetStepDown command
        [ShardedClusterFixture:job0:shard0:node0] 2018-05-31T14:55:41.671+0000 I REPL [conn362] transition to SECONDARY from PRIMARY

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-query Backlog - Query Team (Inactive)
              Reporter:
              bernard.gorman Bernard Gorman
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: