gyfora commented on code in PR #1185:
URL:
https://github.com/apache/flink-kubernetes-operator/pull/1185#discussion_r4717084156
##########
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:
Can we get into a situation where these would never be cleaned up, nor
completed ending up as abandoned garbage? Not sure why we shouldn't clean them
up if they for example reach a certain age.
What is the scenario where after a day a snapshot is still pending and
should not be cleaned up?
--
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]