[SERVER-4196] Count command on mongos can get into infinite loop Created: 02/Nov/11  Updated: 11/Jul/16  Resolved: 04/Nov/11

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 1.8.5, 2.0.2, 2.1.0

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
Operating System: ALL
Participants:

 Description   

If running a count command on a sharded collection and there is a problem where the shard version number doesn't match between the mongos and the mongod, you could get into an infinite loop.



 Comments   
Comment by auto [ 11/Nov/11 ]

Author:

{u'login': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: Make count command on mongos error after 5 failed attempts, instead of retrying indefinitely. SERVER-4196
Branch: v1.8
https://github.com/mongodb/mongo/commit/1519ef321f72b59dc8b586f049e7238728727e91

Comment by auto [ 11/Nov/11 ]

Author:

{u'login': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: Add test for SERVER-4196.
Branch: v2.0
https://github.com/mongodb/mongo/commit/e6e308d2c0a58e6a773a63d93120de6670aa54f4

Comment by auto [ 11/Nov/11 ]

Author:

{u'login': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: Make count command on mongos error after 5 failed attempts, instead of retrying indefinitely. SERVER-4196
Branch: v2.0
https://github.com/mongodb/mongo/commit/340048ba58d661f386bd80fa0685651a31e70b13

Comment by Greg Studer [ 09/Nov/11 ]

Should be pretty easy to backport into 2.0.2 and 1.8.5

Comment by auto [ 04/Nov/11 ]

Author:

{u'login': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: Add test for SERVER-4196.
Branch: master
https://github.com/mongodb/mongo/commit/bf2fef392d47b8f7784dcbe79112901778945e63

Comment by auto [ 04/Nov/11 ]

Author:

{u'login': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: Make count command on mongos error after 5 failed attempts, instead of retrying indefinitely. SERVER-4196
Branch: master
https://github.com/mongodb/mongo/commit/33abbf5702ca42f5763b1c5b2e8b285379b56222

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