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

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

      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-server-query Backlog - Query Team (Inactive)
            Reporter:
            bernard.gorman@mongodb.com Bernard Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: