vivek807 commented on code in PR #19056:
URL: https://github.com/apache/druid/pull/19056#discussion_r3122601256
##########
extensions-core/kubernetes-extensions/src/main/java/org/apache/druid/k8s/discovery/DefaultK8sApiClient.java:
##########
@@ -163,9 +164,11 @@ public boolean hasNext() throws SocketTimeoutException
catch (RuntimeException ex) {
if (ex.getCause() instanceof SocketTimeoutException) {
throw (SocketTimeoutException) ex.getCause();
- } else {
- throw ex;
}
+ if (ex.getCause() instanceof StreamResetException) {
Review Comment:
Hi @gianm,
Let me know if that's ok, else I will add class name check as suggested.
--
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]