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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: MapReduce
    • None
    • Query
    • ALL
    • 61
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

              Assignee:
              Backlog - Query Team (Inactive)
              Reporter:
              Bernard Gorman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: