[SERVER-14304] Equality queries on _id with projection on _id may return orphan documents on sharded collections Created: 19/Jun/14 Updated: 11/Jul/16 Resolved: 19/Jun/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying, Sharding |
| Affects Version/s: | 2.6.0, 2.6.1, 2.6.2 |
| Fix Version/s: | 2.6.3, 2.7.3 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | J Rassi | Assignee: | J Rassi |
| 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 19, 2014 ISSUE SUMMARY Example: The following query has an equality predicate on _id and a projection on {_id:1} and is thus affected by the bug. It returns any orphaned documents present on any shards targeted by the query.
USER IMPACT WORKAROUNDS AFFECTED VERSIONS FIX VERSION RESOLUTION DETAILS Original descriptionIf a sharded query that includes an equality predicate on _id and a projection of {_id: 1} targets shards with matching orphan documents, then the orphans will incorrectly be returned by the query. The cause of this issue is a regression introduced in 2.6.0-rc2 ( Reproduce with the following:
|
| Comments |
| Comment by Githook User [ 19/Jun/14 ] |
|
Author: {u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}Message: (backport of 6fe6dee814326ac41f8d626c26bf32763ce73d71) |
| Comment by Githook User [ 19/Jun/14 ] |
|
Author: {u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}Message: (backport of 6fe6dee814326ac41f8d626c26bf32763ce73d71) |
| Comment by Githook User [ 19/Jun/14 ] |
|
Author: {u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}Message: |