[SERVER-12068] Exception generated from update for 2d index, $near update Created: 12/Dec/13 Updated: 27/Jan/14 Resolved: 23/Jan/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Geo, Index Maintenance |
| Affects Version/s: | 2.4.6, 2.5.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jonathan Abrahams | Assignee: | Benety Goh |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | 26qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Observed in standalone environment on Mac OS, but seems to be generic |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: | var t = db.jstests_geo_deduplication; // 2d index with $near ); ); t.update({locs: {$near: [50.0, 50.0]}}, {$inc: {touchCount: 1}}, false, true); |
||||||||
| Participants: | |||||||||
| Description |
|
Found in QA-322, update_geo_dedup.js The behavior exists in 2.4.6 as follows:
Mongo shell (client) sees the following: > t.find() { "_id" : ObjectId("52a9e7a29013d3eba0228d38"), "locs" : [ [ 49.999, 49.999 ], [ 50, 50 ], [ 50.001, 50.001 ] ], "touchCount" : 1 }In 2.5.4 the behavior is similar but the error is propagated back to the user: > t.update({locs: {$near: [50.0, 50.0]}}, {$inc: {touchCount: 1}}, false, true); |
| Comments |
| Comment by Jonathan Abrahams [ 27/Jan/14 ] |
|
Verified in "gitVersion" : "c51857a44af6fc69f1e21bb9c6b2b6adda0ef80e" |
| Comment by Jonathan Abrahams [ 27/Jan/14 ] |
|
Latest nightly no longer has this issue: "version" : "2.5.5-pre-", |
| Comment by Benety Goh [ 21/Jan/14 ] |
|
jonathan.abrahams, I tried this on 2.5.5-pre (git version: df45324b26d66f8a5155a0a9799b0ba000544ebb) with the attached js test script and it passed for me. Can we resolve this? |
| Comment by Daniel Pasette (Inactive) [ 03/Jan/14 ] |
|
I think this is a duplicate or related to |
| Comment by Jonathan Abrahams [ 19/Dec/13 ] |
|
Reproduced it from fresh build: 2.5.5-pre- (git version: c2f072309bf3d5e64757ebf49d98c005f3c47498) (modules: subscription) > var t = db.jstests_geo_deduplication; ); ); ] |
| Comment by Daniel Pasette (Inactive) [ 19/Dec/13 ] |
|
I cannot reproduce this on 2.5.5-pre (git version: 22a03afae8a1a3b9e9218e8e9985f5bfb8d9ac04) |