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


##########
spark-operator/src/main/java/org/apache/spark/k8s/operator/utils/ReconcilerUtils.java:
##########
@@ -211,6 +221,16 @@ 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.)
+    int code = e.getCode();
+    return code == 0
+        || code == HTTP_INTERNAL_ERROR

Review Comment:
   Thanks for the catch! Yes, 500 should not be defined as transient. I've 
updated the naming (and also included 408).
   
   For 429, I'll try to handle that with separate JIRA - as server is rate 
limiting it's better to be retried with backoff.



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