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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、axios の処理呼び出しの前後で consumer.receive() と acknowledge() を使用して while ループを再現し、API リクエストの前後で acknowledgement を比較します。receive() が、タイムアウトするまで、すでに acknowledged されたメッセージを返し続けるか確認し、クライアントの実行中に pulsar-admin を使って topic-partition の状態を比較します。処理後の acknowledgement によって、クライアントを再起動せずにそれらのメッセージがそれ以上配信されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, node.js
- 領域
- distributed-systems
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100