Hi Zhang,
Please find the code snippet.
private ReducingState<NatLogData> aggrRecord; // record being aggregated
@Override
public void onTimer(long timestamp, OnTimerContext ctx, Collector<NatLogData>
out) throws Exception {
// FIXME timer is not working? or re-registration not working?
NatLogData event = aggrRecord.get(); // Always get null value.
Thanks,
Suchithra
From: JING ZHANG <[email protected]>
Sent: Wednesday, June 9, 2021 2:20 PM
To: V N, Suchithra (Nokia - IN/Bangalore) <[email protected]>
Cc: [email protected]; Jash, Shaswata (Nokia - IN/Bangalore)
<[email protected]>
Subject: Re: Issue with onTimer method of KeyedProcessFunction
Hi Suchithra,
Would you please provide more information in detail or paste the main code?
Best regards,
JING ZHANG
V N, Suchithra (Nokia - IN/Bangalore)
<[email protected]<mailto:[email protected]>> 于2021年6月9日周三 下午3:42写道:
Hello,
We are using apache flink 1.7 and now trying to upgrade to flink 1.12.3
version. After upgrading to 1.12.3 version, the onTimer method of
KeyedProcessFunction is not behaving correctly, the value of ReducingState and
ValueState always return null.
Could you please help in debugging the issue.
Thanks,
Suchithra