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


##########
spark-operator/src/main/java/org/apache/spark/k8s/operator/utils/StatusRecorder.java:
##########
@@ -97,13 +97,14 @@ private void patchAndStatusWithVersionLocked(CR resource, 
KubernetesClient clien
         
resource.getMetadata().setResourceVersion(updated.getMetadata().getResourceVersion());
         err = null;
       } catch (KubernetesClientException e) {
-        log.error("Error while patching status, retrying {}/{}...", i + 1, 
maxRetry, e);
+        log.warn("Error while patching status, retrying {}/{}...", i + 1, 
maxRetry, e);
         
Thread.sleep(TimeUnit.SECONDS.toMillis(API_RETRY_ATTEMPT_AFTER_SECONDS.getValue()));
         err = e;
       }
     }
 
     if (err != null) {
+      log.error("Fail to patch status.", err);

Review Comment:
   When all re-tries fail, we log `ERROR`.



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