Details
-
Bug
-
Resolution: Cannot Reproduce
-
Major - P3
-
None
-
0.11
-
None
-
None
Description
celestine-3 is an instance of mongos (nightly 27 Jan 2011) with one shard, referring to a replica set with 3 machines.
The replica set has database "test1" which contains "items" collection with 320000 documents.
Connecting to mongos with slaveOk=false or a a replica set underlying the mongos instance works fine even with slaveOk=true works fine.
The following code reads some records, then bails out with an exception (see below):
static void ReadTest()
{
try
catch (Exception ex)
{ Console.WriteLine(ex.ToString()); } Console.ReadKey();
}
Exception:
MongoDB.Driver.MongoQueryException: Cursor not found.
at MongoDB.Driver.Internal.MongoReplyMessage`1.ReadFrom(BsonBuffer buffer) in Driver\Internal\MongoReplyMessage.cs
at MongoDB.Driver.Internal.MongoConnection.ReceiveMessage[TDocument](MongoServer server) in Driver\Internal\MongoConnection.cs
at MongoDB.Driver.Internal.MongoCursorEnumerator`1.GetReply(MongoRequestMessage message) in Driver\Internal\MongoCursorEnumerator.cs
at MongoDB.Driver.Internal.MongoCursorEnumerator`1.GetMore() in Driver\Internal\MongoCursorEnumerator.cs
at MongoDB.Driver.Internal.MongoCursorEnumerator`1.MoveNext() in Driver\Internal\MongoCursorEnumerator.cs
at mongotest.Program.ReadTest() in Program.cs:line 115