[SERVER-27438] Legacy query via mongos drops $comment Created: 15/Dec/16 Updated: 19/Jun/18 Resolved: 02/Aug/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 3.4.0 |
| Fix Version/s: | 3.4.2, 3.5.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Bernard Gorman | Assignee: | Bernard Gorman |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Major Change | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Backport Requested: |
v3.4, v3.2
|
||||||||||||
| Steps To Reproduce: | 1. Spin up a 3.4 sharded cluster |
||||||||||||
| Sprint: | Query 2017-01-23 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
When a legacy query is issued to a mongos with a $comment meta-operator attached, the comment will be dropped before the query is forwarded. This is because the query is transformed to a find command for the shards, but the $comment field is not parsed from the original legacy object and is therefore not added to the final command. A legacy query on a mongod retains the comment since no transformation occurs. This behaviour has been present since 3.2. |
| Comments |
| Comment by Githook User [ 20/Jan/17 ] |
|
Author: {u'username': u'gormanb', u'name': u'Bernard Gorman', u'email': u'bernard.gorman@gmail.com'}Message: Signed-off-by: James Wahlin <james.wahlin@10gen.com> |
| Comment by Githook User [ 18/Jan/17 ] |
|
Author: {u'username': u'gormanb', u'name': u'Bernard Gorman', u'email': u'bernard.gorman@gmail.com'}Message: Closes #1135 Signed-off-by: James Wahlin <james.wahlin@10gen.com> |
| Comment by Mathias Stearn [ 18/Jan/17 ] |
|
Reopening due to test failure: https://evergreen.mongodb.com/task/mongodb_mongo_master_enterprise_rhel_62_64_bit_sharding_last_stable_mongos_and_mixed_shards_0eeb9396ff46269c2181e5d4aeab629863d875d4_17_01_18_13_13_16 |
| Comment by Githook User [ 18/Jan/17 ] |
|
Author: {u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: Revert " This reverts commit 0eeb9396ff46269c2181e5d4aeab629863d875d4. |
| Comment by Githook User [ 18/Jan/17 ] |
|
Author: {u'username': u'gormanb', u'name': u'Bernard Gorman', u'email': u'bernard.gorman@gmail.com'}Message: Closes #1135 Signed-off-by: James Wahlin <james.wahlin@10gen.com> |