gyfora commented on code in PR #1185:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/1185#discussion_r4719978230


##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/observer/SnapshotObserver.java:
##########
@@ -278,6 +283,12 @@ Set<FlinkStateSnapshot> getFlinkStateSnapshotsToCleanUp(
         var snapshotList =
                 snapshots.stream()
                         .filter(s -> !s.isMarkedForDeletion())
+                        .filter(
+                                s ->
+                                        s.getStatus() != null
+                                                && s.getStatus().getState() != 
null
+                                                && 
CLEAN_UP_SNAPSHOT_STATES.contains(

Review Comment:
   Thanks @Dennis-Mircea . I think it makes sense to fix these two issues 
together. If you can fix both in a new PR I would be inclined to merge that 
instead.



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

Reply via email to