Dennis-Mircea Ciupitu created FLINK-41725:
---------------------------------------------

             Summary: Harden FlinkStateSnapshot cleanup
                 Key: FLINK-41725
                 URL: https://issues.apache.org/jira/browse/FLINK-41725
             Project: Flink
          Issue Type: Improvement
          Components: Kubernetes Operator
            Reporter: Dennis-Mircea Ciupitu


h1. Motivation

The cleanup of {{FlinkStateSnapshot}} resources is not state-aware and not 
bounded:
 * FLINK-40384: with {{savepoint.history.max.count: 1}} the history cleanup 
evicts the periodic snapshot that was just created, since the count rule 
ignores the snapshot state. The controller then hits a 409 on the deleted 
resource, emits a {{SavepointError}} event every cycle, and the savepoint Flink 
already took is left on storage.
 * FLINK-41710: deleting an {{IN_PROGRESS}} snapshot never completes. A deleted 
resource is only dispatched to cleanup, and only reconcile observes the 
savepoint result, so it stays in {{Terminating}} until the finalizer is removed 
by hand.
 * Nothing bounds a cleanup whose savepoint never finishes or whose disposal 
keeps failing.

h1. Scope
 * Age rule for any state, count rule for finished snapshots only, newest 
completed snapshot always kept.
 * Observe an in-progress snapshot before its cleanup decides, so a completed 
savepoint is disposed and a failed one dropped.
 * A configurable cleanup timeout that releases the resource with a 
{{CleanupTimeout}} warning event.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to