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

Legacy MR shardedfinish can target a former primary

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: MapReduce, Replication
    • Labels:
    • Operating System:
      ALL
    • Sprint:
      Query 2020-04-06
    • Linked BF Score:
      39

      Description

      This causes the overall MR to fail with "not master and slaveOk=false" when trying to establish cursors on the shards, because the cursors are supposed to be against the primary but if there has been an election then the node the query is sent to might now be a secondary. It's not clear to me if the MR should just read from the secondary, or if this is just another failure mode of the legacy MR system (ie. it's simply not robust to any elections at any point during its runtime).

        Attachments

          Activity

            People

            Assignee:
            nicholas.zolnierz Nicholas Zolnierz
            Reporter:
            kevin.pulo Kevin Pulo
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: