Hi Team, I am trying to maintain open session cou...
# troubleshooting
n
Hi Team, I am trying to maintain open session counter , So for this I am incrementing the open session counter during START event(First event) and decrementing the open session counter during END event(Other event), but problem is that suppose START event captured and increment open session counter, but some how application has been stoped and we redeployed it then Flink remove all the state from memory and then END event occured then open session counter decrementing the counter, then on that time open session counter value is 0(because Flink flushed all the state during redeployment) and then it goes into negative constant value, So to resolve this problem what we are trying that we are trying to fetch the open session counter value from START event during END event capturing, but its giving NullPointerException , becuase as I abserved that we can’t get same keyed value of one event to other event execution time, like same keyed value of START event I am trying to get duing END event to check if that same keyed exist then only open session counter decrement the counter value otherwise not, this will help me to restict to open session counter value never become negative. Could you please suggest how we can solve this problem Thanks