moped icon indicating copy to clipboard operation
moped copied to clipboard

2.6-rc0 geo_near error

Open robj opened this issue 11 years ago • 0 comments

The following geo_near query works with 2.4, fails with 2.6-rc0

collection users has a 2dsphere index

Moped::Errors::OperationFailure - The operation: #<Moped::Protocol::Command @length=149 @request_id=156 @response_to=0 @op_code=2004 @flags=[:slave_ok] @full_collection_name="stud_development.$cmd" @skip=0 @limit=-1 @selector={:geoNear=>"users", :near=>[151.19888274609377, -33.892333984375], :query=>{"active"=>true}, :num=>1000, :spherical=>true} @fields=nil> failed with error 0: "exception: assertion src/mongo/db/exec/s2near.cpp:65"

See https://github.com/mongodb/mongo/blob/master/docs/errors.md


2014-02-26T10:18:38.545+1100 [conn11] stud_development.users Assertion failure _nearFieldIndex < _params.indexKeyPattern.nFields() src/mongo/db/exec/s2near.cpp 65 2014-02-26T10:18:38.548+1100 [conn11] stud_development.users 0x100676c6b 0x10062f622 0x1006200a2 0x1002034cd 0x100202c46 0x1001fa493 0x1003c2c80 0x1001301a4 0x1001a8515 0x1001a9185 0x1001a9f8c 0x1003ae1a2 0x100288979 0x100006e44 0x10063cdd1 0x1006ab075 0x7fff8f737899 0x7fff8f73772a 0x7fff8f73bfc9 0 mongod 0x0000000100676c6b _ZN5mongo15printStackTraceERSo + 43 1 mongod 0x000000010062f622 _ZN5mongo10logContextEPKc + 114 2 mongod 0x00000001006200a2 _ZN5mongo12verifyFailedEPKcS1_j + 274 3 mongod 0x00000001002034cd _ZN5mongo11S2NearStage4initEv + 821 4 mongod 0x0000000100202c46 _ZN5mongo11S2NearStage4workEPm + 36 5 mongod 0x00000001001fa493 _ZN5mongo15ProjectionStage4workEPm + 59 6 mongod 0x00000001003c2c80 _ZN5mongo12PlanExecutor7getNextEPNS_7BSONObjEPNS_7DiskLocE + 274 7 mongod 0x00000001001301a4 _ZN5mongo16Geo2dFindNearCmd3runERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb + 6408 8 mongod 0x00000001001a8515 _ZN5mongo12_execCommandEPNS_7CommandERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb + 37 9 mongod 0x00000001001a9185 _ZN5mongo7Command11execCommandEPS0_RNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb + 2617 10 mongod 0x00000001001a9f8c _ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi + 1388 11 mongod 0x00000001003ae1a2 ZN5mongo11newRunQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1 + 1602 12 mongod 0x0000000100288979 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE + 1961 13 mongod 0x0000000100006e44 _ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 308 14 mongod 0x000000010063cdd1 _ZN5mongo17PortMessageServer17handleIncomingMsgEPv + 1681 15 mongod 0x00000001006ab075 thread_proxy + 229 16 libsystem_pthread.dylib 0x00007fff8f737899 _pthread_body + 138 17 libsystem_pthread.dylib 0x00007fff8f73772a _pthread_struct_init + 0 18 libsystem_pthread.dylib 0x00007fff8f73bfc9 thread_start + 13 2014-02-26T10:18:38.549+1100 [conn11] command stud_development.$cmd command: { geoNear: "users", near: [ 151.1988827460938, -33.892333984375 ], query: { active: true }, num: 1000, spherical: true } keyUpdates:0 numYields:0 locks(micros) r:4641 reslen:126 4ms

robj avatar Feb 25 '14 23:02 robj