[SERVER-11369] Change in behaviour of MinKey/MaxKey Created: 24/Oct/13  Updated: 06/May/15  Resolved: 02/Nov/13

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 2.5.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Alvin Richards (Inactive) Assignee: Eliot Horowitz (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.4-pre-",
"gitVersion" : "3b87e21f115188af7b47e7c50486133450a5d029",
"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
is related to SERVER-18341 Matcher returns false positives in co... Closed
Backwards Compatibility: Minor Change
Operating System: ALL
Steps To Reproduce:

2.4.5

> db.q.drop();
true
> db.q.insert({a:1});
> db.q.find( { "a.b.c" : MinKey } )
{ "_id" : ObjectId("5269a584d627d2d0a303d37c"), "a" : 1 }

2.5.4-pre

> db.q.drop();
true
> db.q.insert({a:1});
> db.q.find( { "a.b.c" : MinKey } )

Participants:

 Description   

Problem:
MinKey appears to behave differently in 2.4.5 and 2.5.4-pre



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

MaxKey exhibits a similar change

db.q.drop()
db.q.insert({c:1});
db.q.find( { "c" : MaxKey } ).itcount()

2.4.5: 1 document returned
2.5.4-Pre: 0 documents

Generated at Thu Feb 08 03:25:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.