[SERVER-1912] Scope is retained across mapReduce jobs in the same connection Created: 08/Oct/10  Updated: 08/Jan/24  Resolved: 12/Oct/15

Status: Closed
Project: Core Server
Component/s: JavaScript, MapReduce
Affects Version/s: 1.7.1
Fix Version/s: 3.2.0-rc0

Type: Bug Priority: Minor - P4
Reporter: Tony Hannan Assignee: Mira Carey
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Fri Oct 8 12:17:47 db version v1.7.2-pre-, pdfile version 4.5
Fri Oct 8 12:17:47 git version: 7a21313631aa998bf6456310882b9ba75be8679d
Fri Oct 8 12:17:47 sys info: Darwin 132.sub-75-193-231.myvzw.com 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_44


Issue Links:
Duplicate
is duplicated by SERVER-18505 MapReduce scope variables do not get ... Closed
Backwards Compatibility: Minor Change
Operating System: ALL
Sprint: Platform 6 07/17/15, Platform 8 08/28/15, Platform 7 08/10/15
Participants:

 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.



 Comments   
Comment by Andrew Morrow (Inactive) [ 12/Oct/15 ]

This was fixed in SERVER-20678: scopes are no longer re-used for MR jobs.

Comment by Mira Carey [ 27/May/15 ]

ramon.fernandez, I'm coming back around to all of these after I've got spidermonkey stood up a little more.

The idea is that I'll validate that bugs have gone away, or make sure that I don't replicate them after we make the move over

Comment by Tony Hannan [ 08/Oct/10 ]

Assign to me (Tony) if you want me to fix it.

Generated at Thu Feb 08 02:58:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.