Dennis-Mircea commented on code in PR #1217:
URL:
https://github.com/apache/flink-kubernetes-operator/pull/1217#discussion_r4146491752
##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/utils/StatusRecorder.java:
##########
@@ -102,23 +104,7 @@ public void patchAndCacheStatus(CR resource,
KubernetesClient client) {
}
var prevStatus = convertPreviousStatus(resource, previousStatusNode);
-
- Exception err = null;
- for (int i = 0; i < 3; i++) {
- // We retry the status update 3 times to avoid some intermittent
connectivity errors
- try {
- replaceStatus(resource, prevStatus, client);
- err = null;
Review Comment:
Why not to put just a simple break statement here?
--
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]