[SERVER-23119] Inline map/reduce run through mongos sends invalid collection name to setShardVersion Created: 14/Mar/16  Updated: 03/Oct/16  Resolved: 14/Mar/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.0.10, 3.2.4
Fix Version/s: 3.3.4

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-23450 Invariant failure with invalid 'repla... Closed
related to SERVER-23480 Invariant failure with invalid namesp... Closed
related to SERVER-23889 Invariant failure when running sharde... Closed
related to SERVER-26440 Invariant failure nss.isValid() when ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 11 (03/11/16), Sharding 12 (04/01/16)
Participants:
Linked BF Score: 0

 Description   

If the out: {inline: 1} option is specified to map/reduce command run through mongos, the router will try to do setShardVersion for the connections with an invalid namespace.

The fix should be to not prime the sharding information for the out collection if the output is inline in the first place.



 Comments   
Comment by Githook User [ 14/Mar/16 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-23119 Assert setShardVersion never uses invalid namespace

Ensure that setShardVersion is not sent for inline M/R output and same for
count command with missing or invalid namespace.
Branch: master
https://github.com/mongodb/mongo/commit/3a29ba32703e1b10cf4aa3d48a7f05f1a76481ca

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