Thanks for the reply.
If I only change query upstream and downstream operators, can I restore the query's state from a savepoint? It seems like the translated operators for a query have a auto-generated uid/hash, whose value depends on its location in the graph and its input/output.
Best
Yan
Hi,
My application use flink SQL and it's running in production. How can i update my application with topology changes yet doesn't lose the state data?
Is there a way to assign UID to the operators that are translated from SQL? If not, is it intended and whats the rationality behind it?
According to the flink document[1], UID has to be manually assigned to each operator. Otherwise changing the topology will very likely change the UID, which in return messes up the state restoring from savepoint.
Please advise.
[1] https://ci.apache.org/projects/flink/flink-docs- master/ops/state/savepoints. html#assigning-operator-ids
Assigning Operator IDs. It is highly recommended that you adjust your programs as described in this section in order to be able to upgrade your programs in the future. The main required change is to manually specify operator IDs via the uid(String) method.
Free forum by Nabble | Edit this page |