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

Scope is retained across mapReduce jobs in the same connection

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.2.0-rc0
    • 1.7.1
    • JavaScript, MapReduce
    • None
    • Minor Change
    • ALL
    • Platform 6 07/17/15, Platform 8 08/28/15, Platform 7 08/10/15

    Description

      To reproduce:
      1. Execute a mapReduce with "x" variable in mapReduce scope and reference it in a function.
      2. Execute another mapReduce (using same connection) without "x" variable in scope but still reference it in a function.

      Problem:
      Second mapReduce should have failed with "reference to undefined variable 'x'". Instead it works referencing old "x" variable.

      Attachments

        Activity

          People

            mira.carey@mongodb.com Mira Carey
            tonyh Tony Hannan
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: