Closed yuzyf closed 1 year ago
@yuzyf This is a Flink issue, you are using streaming mode, so the iterator will be blocked to wait next record.
You should use batch mode...
And please use English in github issue.
@yuzyf This is a Flink issue, you are using streaming mode, so the iterator will be blocked to wait next record.
You should use batch mode...
I have set in my code
@yuzyf If you are using batch mode, you can launch a thread to iterate records.
I think the method hasNext
blocks the iterator is a valid action when no data has arrived. If a iterator returns false in hasNext()
, it means the iterator has no more data. The execution of job is asynchronous, no data at the moment does means the iterator has no more data.
Search before asking
Motivation
现在这段代码查不到数据的话、就会在iterator.hasNext()进行阻塞、有数据就不会阻塞、我的理解是hasNext、没有数据不应该返回false直接跳过吗、现在有什么可以修改的方案吗、谢谢
Solution
No response
Anything else?
No response
Are you willing to submit a PR?