I am trying to "upgrade" (recreate with savepoint)...
# troubleshooting
s
I am trying to "upgrade" (recreate with savepoint) existing job to new sql statement. The change is from
Copy code
INSERT INTO destination_table
SELECT ...
FROM source_table
WHERE ...
to
Copy code
INSERT INTO destination_table
SELECT ...
FROM source_table
LEFT JOIN lookup_table ...
WHERE ...
The new job creation fails with error
Copy code
Failed to rollback to checkpoint/savepoint file:/tmp/flink-savepoints/savepoint-393ae1-14037a30c20f. Cannot map checkpoint/savepoint state for operator ba40499bacce995f15693b1735928377 to the new program, because the operator is not available in the new program. If you want to allow to skip this, you can set the --allowNonRestoredState option on the CLI.
May I specify old operator Id on the new sql statement? Or somehow automatically skip it by configuring something on session or statement execution config? We are using SQL Gateway to submit jobs
m
s
May I use
allowNonRestoredState
with SQL Gateway on
executionConfig
same as with REST API ?
m
That won’t help you unfortunately
Query evolution isn’t supported in general
s
I though this is what savepoints and operator IDs used for.
You can use Savepoints to stop-and-resume, fork, or update your Flink jobs
https://nightlies.apache.org/flink/flink-docs-release-1.18/docs/ops/state/savepoints/#assigning-operator-ids
m
That’s for DataStream API applications
j
what's the recommended workaround for this scenario?