vivek807 commented on code in PR #19056:
URL: https://github.com/apache/druid/pull/19056#discussion_r3049904018
##########
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:
Yes, I think that’s doable. However, I’m concerned whether retaining the
dependency and relying on a class-based check could cause issues. Other
Kubernetes components are also using this library, as evidenced by the specific
exception we’re encountering.
--
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]