[SERVER-13865] Shell returns incorrect WriteResult for compatibility-mode upsert with non-OID equality pred on _id field Created: 07/May/14 Updated: 11/Jul/16 Resolved: 23/May/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 2.6.1, 2.7.0 |
| Fix Version/s: | 2.6.2, 2.7.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | J Rassi | Assignee: | Greg Studer |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Completed: | |||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
Issue Status as of Jun 9, 2014 ISSUE SUMMARY
"When using a 2.6 shell against a 2.4 server, or during the upgrade period where a 2.6 mongos talks to a 2.4 mongod server..." Resolution Details: The WriteResult returned is:
The correct WriteResult should be one of the following:
USER IMPACT WORKAROUNDS AFFECTED VERSIONS FIX VERSION RESOLUTION DETAILS Original descriptionIn compatibility mode, the shell returns an incorrect WriteResult for upserts where the query predicate includes an equality match on _id with a non-OID type. The WriteResult returned is:
The correct WriteResult should be one of the following:
Reproduce with:
|
| Comments |
| Comment by Githook User [ 01/Jun/14 ] |
|
Author: {u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}Message: (cherry picked from commit 090ea9a5ad1ed52e40b5a66df5ee1eab283845cb) |
| Comment by Githook User [ 23/May/14 ] |
|
Author: {u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}Message: |
| Comment by Githook User [ 23/May/14 ] |
|
Author: {u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}Message: |
| Comment by Greg Studer [ 16/May/14 ] |
|
Driver changes/audit is probably needed as well, every driver does upconversion of GLE results. |