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

Scope is retained across mapReduce jobs in the same connection

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.2.0-rc0
    • Affects Version/s: 1.7.1
    • Component/s: JavaScript, MapReduce
    • None
    • Environment:
    • Minor Change
    • ALL
    • Platform 6 07/17/15, Platform 8 08/28/15, Platform 7 08/10/15
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: