Module: MongoHA::MongoClient
- Defined in:
- lib/mongo_ha/mongo_client.rb
Defined Under Namespace
Modules: InstanceMethods
Constant Summary collapse
- CONNECTION_RETRY_OPTS =
[:reconnect_attempts, :reconnect_retry_seconds, :reconnect_retry_multiplier, :reconnect_max_retry_seconds]
- MONGOS_CONNECTION_ERRORS =
The following errors occur when mongos cannot connect to the shard They require a retry to resolve them This list was created through painful experience. Add any new ones as they are discovered
9001: socket exception Operation failed with the following exception: Unknown error - Connection reset by peer:Unknown error - Connection reset by peer DBClientBase::findOne: transport error : db assertion failure 8002: 8002 all servers down! Operation failed with the following exception: stream closed Operation failed with the following exception: Bad file descriptor - Bad file descriptor:Bad file descriptor - Bad file descriptor Failed to connect to primary node. 10009: ReplicaSetMonitor no master found for set: mdbb [ 'socket exception', 'Connection reset by peer', 'transport error', 'db assertion failure', '8002', 'stream closed', 'Bad file descriptor', 'Failed to connect', '10009', 'no master found', 'not master', 'Timed out waiting on socket', "didn't get writeback", ]