[JAVA-351] do not retry reads if exception is SocketTimeoutException Created: 12/May/11  Updated: 19/Oct/16  Resolved: 12/May/11

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Antoine Girbal Assignee: Antoine Girbal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

from a prominent user:
I don't think the driver should retry in the case of a SocketTimeoutException. It has the effect of
1) creating confusion for client devs by not observing the timeout
2) submitting a query 3 times to a database that's probably overloaded in some way

I agree with this, it can create much more load on already overloaded DB.



 Comments   
Comment by auto [ 12/May/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: JAVA-351: do not retry reads if exception is SocketTimeoutException
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/fe6b133423105428fa2ccb83e79fd24a30d5ffe6

Generated at Thu Feb 08 08:52:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.