On May 7, 9:33 pm, Eliot Horowitz <
eliothorow...@gmail.com> wrote:
> Can you try with the new 2.0-rc0 java driver?
> Should behave better - and if not will be able to debug easier.
>
>
>
I've tested with it, it's behaves similarly. I get the following
exception when I stop one of the server:
paired mode, switching master b/c of: java.net.SocketException:
Connection reset
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:185)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
at com.mongodb.Response.<init>(Response.java:38)
at com.mongodb.DBPort.go(DBPort.java:80)
at com.mongodb.DBPort.call(DBPort.java:57)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:169)
at com.mongodb.DBApiLayer$MyCollection.find(DBApiLayer.java:277)
at com.mongodb.DBCollection.findOne(DBCollection.java:151)
at com.mongodb.DBCollection.findOne(DBCollection.java:138)
Sometimes I get this:
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(BufferedInputStream.java:327)
at com.mongodb.Response.<init>(Response.java:38)
at com.mongodb.DBPort.go(DBPort.java:80)
at com.mongodb.DBPort.call(DBPort.java:57)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:169)
at com.mongodb.DBApiLayer$MyCollection.find(DBApiLayer.java:277)
at com.mongodb.DBCollection.findOne(DBCollection.java:151)
at com.mongodb.DBCollection.findOne(DBCollection.java:138)
After I get this:
paired mode, switching master b/c of: java.net.SocketException: Broken
pipe
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:
109)
at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
at org.bson.io.PoolOutputBuffer.pipe(PoolOutputBuffer.java:110)
at com.mongodb.OutMessage.pipe(OutMessage.java:128)
at com.mongodb.DBPort.go(DBPort.java:72)
at com.mongodb.DBPort.call(DBPort.java:57)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:169)
at com.mongodb.DBApiLayer$MyCollection.find(DBApiLayer.java:277)
at com.mongodb.DBCollection.findOne(DBCollection.java:151)
at com.mongodb.DBCollection.findOne(DBCollection.java:138)
And the following comes for a couple seconds:
com.mongodb.MongoException: not talking to master and retries used up
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:178)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:180)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:189)
at com.mongodb.DBApiLayer$MyCollection.find(DBApiLayer.java:277)
at com.mongodb.DBCollection.findOne(DBCollection.java:151)
at com.mongodb.DBCollection.findOne(DBCollection.java:138)
I can understand that in this case, for a couple of seconds, the
system is not available, but the exceptions are still strange.
BR,
Zsombor