Hello,i am learning the flink cep library in flink...
# troubleshooting
a
Hello,i am learning the flink cep library in flink,is there a way we can remove the pattern from the group of patterns from the flink streaming job?
d
Are you saying that you want to dynamically change the pattern while the job is running?
a
No,just want to remove the pattern even by restarting the job from the savepoint.currently i am able to add new pattern in that but removing the existing pattern after a restart it does not allow and job never get started.
d
Do you get an error (perhaps in the logs?) when you try this?
a
Yes,whenever if any pattern is removed ,after restart i give exception -NFA does not contain the state etc
d
I don’t know enough about the CEP internals to know for sure if this will work, but I would try specifying the
--allowNonRestoredState
option when restarting. That might be enough to resolve this issue.
a
Have tried this but still it searches for the state for the deleted patterns