flink program behaves differently in parallelism

こ雲淡風輕ζ 提交于 2021-02-19 08:55:07

问题


I am using Flink 1.4.1 and I am using CEP. I have to calculate lifetime order amount by the same user in each order.

So when I sending orders Order A -> amount: 500, Order B -> amount: 200, Order C -> amount: 300 and calculating key by the user using states. Sometime in Order B, it's showing 700 and sometimes 200.

Means sometimes it's adding order A in B, sometimes not. I am running code in 6 parallelisms. Is this parallelism issue or distributed state issue?

When I run the whole program with the single parallelism, then the program behaves correctly and shows the correct result.

Regards, Pranjal

来源:https://stackoverflow.com/questions/51358377/flink-program-behaves-differently-in-parallelism

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!