[SERVER-2885] Starting routing server with missing config server gives exception Created: 01/Apr/11  Updated: 19/Apr/12  Resolved: 01/Apr/11

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

Type: Bug Priority: Major - P3
Reporter: Gerhard Balthasar Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux 64Bit


Operating System: ALL
Participants:

 Description   

When starting a routing server and a config server is not online at that moment, instead of connecting later, an exception is thrown and the routing server exits immediatly

Fri Apr 1 14:12:44 reconnect mongo-int1:9999 failed couldn't connect to server mongo-int1:9999
Fri Apr 1 14:12:44 query failed to: mongo-int1:9999 exception
Fri Apr 1 14:12:44 query failed to: mongo-int1:9999 exception
Fri Apr 1 14:12:44 query failed to: mongo-int1:9999 exception
Fri Apr 1 14:12:44 query failed to: mongo-int1:9999 exception
Fri Apr 1 14:12:44 trying reconnect to mongo-int3:9999
Fri Apr 1 14:12:44 reconnect mongo-int3:9999 failed couldn't connect to server mongo-int3:9999
Fri Apr 1 14:12:44 ~ScopedDbConnection: _conn != null
uncaught exception in mongos main:
8003 SyncClusterConnection::insert prepare failed: 9001 socket exception [5] mongo-int1:9999:{}9001 socket exception [6] mongo-int3:9999:{}

This should not happen as http://jira.mongodb.org/browse/SERVER-1936 is marked as fixed



 Comments   
Comment by Eliot Horowitz (Inactive) [ 01/Apr/11 ]

The first time you start up a cluster you have to have all 3 config servers online.
Subsequently you will not

Comment by Gerhard Balthasar [ 01/Apr/11 ]

Yes, it's the very first time I started the Routing Server.

I'm using scripts to startup 3 servers from one server (A) and remote start the two others first (B/C). On those (B/C) the exception occurs. When both servers (B/C) are up, the server (A) would start up and the script would then configure replicasets and shards, again doing the other servers (B/C) first. But this fails as the Routing-Servers on those two servers (B/C) did not start.

Thanks for your fast response. Any Info you need, actions I can take?

Comment by Eliot Horowitz (Inactive) [ 01/Apr/11 ]

Is this the first the time mongos is coming up or has it been up before?

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