Dennis-Mircea Ciupitu created FLINK-41724:
---------------------------------------------

             Summary: Operator-created FlinkStateSnapshots get backoffLimit 0 
instead of the documented -1
                 Key: FLINK-41724
                 URL: https://issues.apache.org/jira/browse/FLINK-41724
             Project: Flink
          Issue Type: Bug
          Components: Kubernetes Operator
            Reporter: Dennis-Mircea Ciupitu


h1. Problem

Snapshots created by the operator (periodic, upgrade, nonce triggered) are 
marked {{FAILED}} on the first error and never retried, although 
{{spec.backoffLimit}} is documented to default to {{-1}}.

h1. Root cause

{{FlinkStateSnapshotSpec}} declares {{private int backoffLimit = -1;}} under 
{{@SuperBuilder}} without {{@Builder.Default}}, so the builder used by 
{{FlinkStateSnapshotUtils}} yields {{0}}, which the controller treats as "no 
retries". Snapshots created from YAML are not affected. The other builder 
annotated API classes ({{SavepointSpec}}, {{JobSpec}}, {{JobManagerSpec}}) lose 
their field defaults the same way.




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

Reply via email to