[SERVER-2835] Shell does not reconnect after the config server is bounced Created: 25/Mar/11  Updated: 08/Mar/13  Resolved: 18/Sep/12

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

Type: Bug Priority: Major - P3
Reporter: Alvin Richards (Inactive) Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Problem:
Connected to a mongod and queried collections in the config database. After bouncing the config dartabase, re-executing the same statements failed with

> db.chunks.find()
error: {
"$err" : "dbclient error communicating with server: 10.118.18.91:27900",
"code" : 10278
}
> exit

Reproduce:

  • create a 2 shard system
  • insert data into a collection
  • shard the collection
  • connect to the mongos and execute
    > use config
    > db.chunks.find()
  • in shell, shutdown the config server and re-start
  • back in the original shell, execute
    > db.chunks.find()
    error: {
    "$err" : "dbclient error communicating with server: 10.118.18.91:27900",
    "code" : 10278
    }

Workaround:

  • exit the shell and start the shell again, statement then executes

Business case:

  • reliability


 Comments   
Comment by Eliot Horowitz (Inactive) [ 18/Sep/12 ]

Various shell behavior related to this changed.

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