taosdata/TDengine

It is not clear how many times each consumer poll operation needs to be performed

Open

#24,857 opened on 2024年2月23日

GitHub で見る
 (5 comments) (0 reactions) (1 assignee)C (5,002 forks)batch import
help wantedquestion

Repository metrics

Stars
 (24,849 stars)
PR merge metrics
 (平均マージ 1d 1h) (30d で 4 merged PRs)

説明

subscription_problem 注释部分代码是原来直接判断如果poll返回数据是空,直接跳出循环。 发现总是得不到订阅数据。 改成200次poll,结果发现times在114的时候,获取到结果。当然,大部分时候是第一次就能获取到结果。 这个太难理解,如果200次完了都没有poll到呢。 有没有更好的方法呢。

コントリビューターガイド