Hello, We are using flink 1.8 and recently made so...
# troubleshooting
o
Hello, We are using flink 1.8 and recently made some changes in the code. We use s3 + rocks db for state maintenance. We are getting below exceptions when pushing new code to production. Any suggestion on this? Thanks in advance.
Copy code
org.apache.flink.util.StateMigrationException: The new state typeSerializer for operator state must not be incompatible.
	at org.apache.flink.runtime.state.DefaultOperatorStateBackend.getListState(DefaultOperatorStateBackend.java:323)
	at org.apache.flink.runtime.state.DefaultOperatorStateBackend.getListState(DefaultOperatorStateBackend.java:214)
	at org.apache.flink.streaming.api.operators.async.AsyncWaitOperator.initializeState(AsyncWaitOperator.java:268)
	at org.apache.flink.streaming.api.operators.AbstractStreamOperator.initializeState(AbstractStreamOperator.java:278)
	at org.apache.flink.streaming.runtime.tasks.StreamTask.initializeState(StreamTask.java:738)
	at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:289)
	at org.apache.flink.runtime.taskmanager.Task.run(Task.java:711)
	at java.lang.Thread.run(Thread.java:748)
p
I think this happens because there is a change in the type of list operator state in the application. The existing operator state present under the checkpoint directory (filesystem storage) has a different type. If the older operator states are not required, removing them or using a different checkpoint path might solve the problem. Or I think the application code needs to be fixed.
v
agree Prabhu, you should first close recover mode because you changed your udf's parameter or return type