[DOCS-2139] Change in error code between 2.4.x and 2.5.x Created: 21/Oct/13  Updated: 11/Jan/17  Resolved: 25/Oct/13

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: mongodb-2.6
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Alvin Richards (Inactive) Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: 26qa, nqf
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

> db.serverBuildInfo()
{
"version" : "2.5.3-pre-",
"gitVersion" : "1ea7e56cb2b8653d4b0453f04728033df34be9e1",
"OpenSSLVersion" : "",
"sysInfo" : "Darwin vero 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64 BOOST_LIB_VERSION=1_49",
"loaderFlags" : "-fPIC -pthread -Wl,-bind_at_load",
"compilerFlags" : "-Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wno-unknown-pragmas -Winvalid-pch -pipe -O3 -Wno-unused-function -Wno-deprecated-declarations -mmacosx-version-min=10.6",
"allocator" : "tcmalloc",
"versionArray" : [
2,
5,
3,
-100
],
"javascriptEngine" : "V8",
"bits" : 64,
"debug" : false,
"maxBsonObjectSize" : 16777216,
"ok" : 1
}


Issue Links:
Related
Participants:
Days since reply: 10 years, 16 weeks, 6 days ago

 Description   

Problem:
Changes in errors code for 2.4.x and 2.5.x for the same condition.

Possible just a DOC change.

Reproduce:

2.4.5

> db.t.drop()
> db.t.find({ "$nor" : [ ] })
error: { "$err" : "$and/$or/$nor must be a nonempty array", "code" : 13086 }

2.5.3-pre

> db.t.drop()
> db.t.find({ "$nor" : [ ] })
error: {
	"$err" : "bad query: BadValue $and/$or/$nor must be a nonempty array",
	"code" : 16810
}



 Comments   
Comment by Alvin Richards (Inactive) [ 24/Oct/13 ]

another change

2.4.5

> db.q.find( { "a.b.c" : { $near : [ 2.225073858072009 , 3.225073858072014 ] } } )
error: {
	"$err" : "can't find any special indices: 2d (needs index), 2dsphere (needs index),  for: { a.b.c: { $near: [ 2.225073858072009, 3.225073858072014 ] } }",
	"code" : 13038
}

2.5.4-pre

> db.q.find( { "a.b.c" : { $near : [ 2.225073858072009 , 3.225073858072014 ] } } )
error: {
	"$err" : "Couldn't process query ns = test.q\nTree: GEONEAR raw = { a.b.c: { $near: [ 2.225073858072009, 3.225073858072014 ] } }\n\nSort: {} why: Can't create a plan for the canonical query ns = test.q\nTree: GEONEAR raw = { a.b.c: { $near: [ 2.225073858072009, 3.225073858072014 ] } } First: notFirst: full path: a.b.c\n\nSort: {}",
	"code" : 17007
}

Generated at Thu Feb 08 07:42:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.