apache / apache/pulsar-client-node
Consumer.acknowledge() not registered in client
- 主要语言
- C++
- 星标
- 164
- 派生
- 98
- PR 合并指标
- 30 天内没有已合并 PR
描述
After receiving a message, our script makes an API call through axios to process the pulsar message. consumer.receive() and the processing logic runs in a while loop until receive() times out when the queue is empty.
It appears if we run acknowledge() prior to the API call, the client behaves correctly, that is messages are acked and receive does not receive any more messages once all messages are acked.
But running ack after the API call, the desired way to ack the message, it seems as receive() goes in a loop and keeps receiving messages already acked. However if we quit the script and re-run it, the queue is indeed empty and no messages are received, similarly peaking the messages through pulsar-admin for the given topic-partition while the script is running confirm messages are acked.
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先,使用 consumer.receive() 和 acknowledge() 在 axios 处理调用周围重现 while 循环,比较 API 请求前后的确认操作。检查 receive() 是否会在超时前返回已经确认的消息,并在客户端运行时使用 pulsar-admin 比较 topic-partition 状态。完成的标准是:处理后的确认能够阻止这些消息继续投递,而无需重启客户端。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, node.js
- 领域
- distributed-systems
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100