dongjoon-hyun commented on code in PR #530:
URL: 
https://github.com/apache/spark-kubernetes-operator/pull/530#discussion_r2896743505


##########
spark-operator/src/main/java/org/apache/spark/k8s/operator/utils/ReconcilerUtils.java:
##########
@@ -211,6 +222,15 @@ public static <T extends HasMetadata> void 
deleteResourceIfExists(
     }
   }
 
+  private static boolean isTransientError(KubernetesClientException e) {
+    // code 0 is fabric8's sentinel for network-level failures (timeouts, 
connection resets, etc.)
+    return switch (e.getCode()) {
+      case 0, HTTP_CLIENT_TIMEOUT, HTTP_INTERNAL_ERROR, HTTP_BAD_GATEWAY,

Review Comment:
   `HTTP_INTERNAL_ERROR` should not be in `isTransientError`, @jiangzho .
   
   Maybe, this is a simple copy-and-paste of my style change example?



-- 
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]

Reply via email to