MongoDB with 2 shards. When both the shards are up and running, our mongo driver using MongoS
inserts the objects properly and get proper codes in getLastError.
When one of the shard(Shard1) is down (MongoD process is crashed), MongoS
starts giving socket exception (with code *) for both shards. (Even though
it keeps inserting objects on one shard2)
At the same time if another mongo driver tries to connect to same MongoS, it
gives proper codes in getLastError i.e. for shard1 it gives socket exception
and for shard2 it gives success. (Also if we stop and start our application
again it works properly)
- is duplicated by
-
SERVER-4643 one of the shard is down
-
- Closed
-