[DOCS-2164] Change in Error message for unknown index plugin Created: 29/Oct/13  Updated: 07/Nov/13  Resolved: 30/Oct/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: mongodb-2.6

Type: Bug Priority: Major - P3
Reporter: Alvin Richards (Inactive) Assignee: Unassigned
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.4-pre-",
"gitVersion" : "d8ca8b5faa1447365403cfb8da16a041e7d31d95",
"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 -mmacosx-version-min=10.6",
"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,
4,
-100
],
"javascriptEngine" : "V8",
"bits" : 64,
"debug" : false,
"maxBsonObjectSize" : 16777216,
"ok" : 1
}


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

 Description   

Problem:
Invoking an incorrect index plug-in results in different message code between versions.

Reproduce:
2.4.5

db.q.drop()
db.q.insert({b:1})
db.q.ensureIndex({b: "unique"})
{
	"err" : "Unknown index plugin 'unique' in index { b: \"unique\" }",
	"code" : 16734,
	"n" : 0,
	"connectionId" : 216,
	"ok" : 1
}

In 2.5.4-Pre

db.q.drop()
db.q.insert({b:1})
db.q.ensureIndex({b: "unique"})
{
	"err" : "Unknown index plugin 'unique' in index { b: \"unique\" }",
	"code" : 67,
	"n" : 0,
	"connectionId" : 1,
	"ok" : 1
}


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