[SERVER-910] config.shard docs have elements of type -1 Created: 22/Apr/09  Updated: 03/Apr/10  Resolved: 22/Apr/09

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

Type: Bug Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: Eliot Horowitz (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Expected:

Mongo m = new Mongo("config");
DBCollection coll = m.getCollection("shard");
DBObject f = coll.findOne();

works. Actual:

~/gitroot/java-driver$ java com.mongodb.Tester
Apr 22, 2009 5:44:58 PM com.mongodb.DBTCP <init>
INFO: 127.0.0.1:27017/config
Exception in thread "main" java.lang.UnsupportedOperationException: can't handle : -1
at com.mongodb.ByteDecoder.decodeNext(ByteDecoder.java:247)
at com.mongodb.ByteDecoder.decodeNext(ByteDecoder.java:232)
at com.mongodb.ByteDecoder.readObject(ByteDecoder.java:104)
at com.mongodb.DBApiLayer$SingleResult.<init>(DBApiLayer.java:534)
at com.mongodb.DBApiLayer$MyCollection.find(DBApiLayer.java:415)
at com.mongodb.DBCollection.findOne(DBCollection.java:258)
at com.mongodb.DBCollection.findOne(DBCollection.java:249)
at com.mongodb.Tester.main(Tester.java:9)

Aaron says to mention that BSONObj clientReadable() const; is the relevant function.



 Comments   
Comment by Kristina Chodorow (Inactive) [ 22/Apr/09 ]

done.

Comment by Eliot Horowitz (Inactive) [ 22/Apr/09 ]

This is correct

-1 is MinKey
127 is MaxKey

can you update the docs?

Generated at Thu Feb 08 02:55:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.