[SERVER-44527] Map reduce to an existing sharded collection can incorrectly create new collections on target shards Created: 08/Nov/19  Updated: 29/Oct/23  Resolved: 20/Dec/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.6.15, 4.0.13, 4.2.1, 4.2.6
Fix Version/s: 3.6.17, 4.2.3, 4.3.3, 4.0.15

Type: Bug Priority: Major - P3
Reporter: Nicholas Zolnierz Assignee: Nicholas Zolnierz
Resolution: Fixed Votes: 0
Labels: qopt-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2, v4.0, v3.6
Sprint: Query 2019-12-02, Query 2019-12-16, Query 2019-12-30
Participants:

 Comments   
Comment by Githook User [ 13/Jan/20 ]

Author:

{'name': 'Nicholas Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-44527 Avoid renaming to target collection in mapReduce if the shard does not own any documents

(cherry picked from commit b4db881a18cbe15127a5a60c971cd393e0621466)
Branch: v3.6
https://github.com/mongodb/mongo/commit/fa836e4fe1a7b5fc7f94abffa951a2d864069a2f

Comment by Githook User [ 10/Jan/20 ]

Author:

{'name': 'Nicholas Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-44527 Avoid renaming to target collection in mapReduce if the shard does not own any documents

(cherry picked from commit b4db881a18cbe15127a5a60c971cd393e0621466)
Branch: v4.0
https://github.com/mongodb/mongo/commit/51c0f303a85a1bbb29cec8e18daa27ee6a187811

Comment by Githook User [ 07/Jan/20 ]

Author:

{'name': 'Nicholas Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-44527 Avoid renaming to target collection in mapReduce if the shard does not own any documents
Branch: v4.2
https://github.com/mongodb/mongo/commit/9a9d2304a75ae944d5f0f4ce2addfccf6733ec21

Comment by Githook User [ 19/Dec/19 ]

Author:

{'name': 'Nicholas Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-44527 Avoid renaming to target collection in mapReduce if the shard does not own any documents
Branch: master
https://github.com/mongodb/mongo/commit/b4db881a18cbe15127a5a60c971cd393e0621466

Comment by Nicholas Zolnierz [ 14/Nov/19 ]

Since we're planning to keep around the mongod side of MR in PM-766, this should be fixed in 4.3 and back ported to 4.2.

Comment by Nicholas Zolnierz [ 08/Nov/19 ]

See Esha's comment here for a better explanation of the details, this ticket is tracking issue #2 in that comment.

Generated at Thu Feb 08 05:06:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.