sreemanamala commented on code in PR #15975:
URL: https://github.com/apache/druid/pull/15975#discussion_r1503674273
##########
server/src/main/java/org/apache/druid/client/DirectDruidClient.java:
##########
@@ -494,6 +504,12 @@ public void onFailure(Throwable t)
Execs.directExecutor()
);
}
+ catch (RuntimeException e) {
+ if (openConnections.get() > 0) {
+ openConnections.getAndDecrement();
+ }
+ throw e;
+ }
Review Comment:
added just to be on safe side, But it will never happen. Will remove the
condition.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]