[SERVER-4569] Mongo seems to fail assert on benign queries Created: 28/Dec/11  Updated: 29/Feb/12  Resolved: 13/Feb/12

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

Type: Bug Priority: Major - P3
Reporter: Thomas Johnson Assignee: Aaron Staple
Resolution: Duplicate Votes: 0
Labels: mongos
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS, Mongo 2.0.2


Issue Links:
Duplicate
duplicates SERVER-4554 shard selection code asserts for cert... Closed
Operating System: ALL
Participants:

 Description   

This gets written to the mongos log (and generates an exception in pymongo) on queries that look benign:

Wed Dec 28 09:39:15 [conn236] Assertion failure shards.size() s/commands_public.cpp 453
0x52b776 0x53662b 0x79a1f8 0x793175 0x76cf2b 0x7b4927 0x7c6cf1 0x5e6a07 0x3dbc80673d 0x3dbbcd44bd
mongos(_ZN5mongo12sayDbContextEPKc+0x96) [0x52b776]
mongos(_ZN5mongo8assertedEPKcS1_j+0xfb) [0x53662b]
mongos(_ZN5mongo15dbgrid_pub_cmds8CountCmd3runERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x2108) [0x79a1f8]
mongos(_ZN5mongo7Command20runAgainstRegisteredEPKcRNS_7BSONObjERNS_14BSONObjBuilderEi+0x8b5) [0x793175]
mongos(_ZN5mongo14SingleStrategy7queryOpERNS_7RequestE+0x5cb) [0x76cf2b]
mongos(_ZN5mongo7Request7processEi+0x187) [0x7b4927]
mongos(_ZN5mongo21ShardedMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x71) [0x7c6cf1]
mongos(_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x287) [0x5e6a07]
/lib64/libpthread.so.0 [0x3dbc80673d]
/lib64/libc.so.6(clone+0x6d) [0x3dbbcd44bd]



 Comments   
Comment by Aaron Staple [ 13/Feb/12 ]

Yep - it's SERVER-4554.

Comment by Eliot Horowitz (Inactive) [ 29/Dec/11 ]

It shouldn't assert - that's a bug that I think is already fixed in master.

Comment by Thomas Johnson [ 29/Dec/11 ]

It's definitely possible that the query has no results. But why should something that is such a normal part of operations cause an assertion failure and an exception in the client?

Comment by Eliot Horowitz (Inactive) [ 29/Dec/11 ]

is it possible this query has no possible results?
There is an issue if you do a query like
{ a :

{ $gt : 5 , $lt : 3 }

}
that can't have results

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