Hi all, After modifying an existing job in product...
# troubleshooting
e
Hi all, After modifying an existing job in production (AWS Managed Flink) and submitting the new job to the cluster, the entire cluster goes down because of a
CannontMapSnapshotState
error.
Copy code
Caused by: java.lang.IllegalStateException: Failed to rollback to checkpoint/savepoint s3://7f606938a77b28b20019ed8349f362837a8f4623/415e84dacfda9437029353f5b5e645f1-833603812351-1702977036235/savepoints/174/attempt-1/savepoint-415e84-94daf8fd8af9. Cannot map checkpoint/savepoint state for operator 5e41dc390d043aff80bcdeef4d074c59 to the new program, because the operator is not available in the new program.
What are the recommendations for deployment when modifying running operators?
a
In addition to the above comment - allowing non-restored state will drop state from the operators that are not present. If you make changes to your operators and want to preserve state (assuming that state remains compatible) - make sure that you explicitly specifying uid for your operators in your application code. https://nightlies.apache.org/flink/flink-docs-release-1.18/docs/ops/production_ready/#set-uuids-for-all-operators
e
Thank you both for your recommendations πŸ™
s
Is this issue resolved?
e
First option is a quick fix, but also gonna try setting uids for all operators and see how it plays out
s
Also you may need to pay attention to type of Serializer, your savepoint has been serialized with vs the new code which you are going to deploy(with resuming from savepoint) if certain rules are not followed then you can expect Serializer incompatible error ie old code would be following SerializerA whereas the newly deployed code following SerializerB