Closed ajw227 closed 10 months ago
In case of java.net.ConnectException
, the code you linked above is not executed and the request is considered safe to retry, see https://github.com/arangodb/arangodb-java-driver/blob/main/http/src/main/java/com/arangodb/http/HttpCommunication.java#L95
Which exception do you get exactly? Can you please report the full stacktrace as well?
@rashtao Thx for review. I found the issue.
I tested 7.1.0. Changed connect exception handling.
https://github.com/arangodb/arangodb-java-driver/commit/94a7d4e928d2f9573d4e93464dff82aea67d8678.
After changed to 7.2.0, everything is ok. 👍
Happy to help, but note that these changes have been released in 7.3.0.
Description
In case of coordinator is down, the fallback logic does not work properly.
Looking at the code, it seems that the POST method is excluded. Please review.
Setting
Java driver
Test code
Related code
https://github.com/arangodb/arangodb-java-driver/blob/main/http/src/main/java/com/arangodb/http/HttpCommunication.java#L171