Kafka messages were processed twice after rebalancing
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 18/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- kafka, python
調査の方向性
The report describes a Faust worker on a 4-partition Kafka topic that reprocesses 3 already-handled messages after a scale-out rebalance. Start by reproducing it with two local Faust workers and a multi-partition topic, then check when offsets are committed relative to the partition revoke and assign callbacks. Done means a test shows no message is handled twice across a rebalance, or the maintainers confirm it is expected under at-least-once delivery.
索引モデルが issue の本文から書いたものです。
説明
Checklist
- [-] I have included information about relevant versions
- [-] I have verified that the issue persists when using the
masterbranch of Faust.
Steps to reproduce
Tell us what you did to cause something to happen.
I have 1 replica of a faust streaming service that listens to a kafka topic with 4 partitions. This service is currently processing kafka messages when our autoscaler scales it into 2 replicas which causes the rebalancing. Before rebalancing, the first replica processed 3 messages, and after rebalancing, the same 3 kafka messages were reprocessed in the second replica.
Expected behavior
I expect that the 3 messages that were already processed in the first replica should not be reprocessed in the second replica since the these messages should be committed before rebalancing
Actual behavior
These 3 messages were processed twice. The first time in the first replica and the second time in the second replica.
Versions
Python version: 3.7.13
Faust version: 0.10.12
Operating system: Debian GNU/Linux 10
Kafka version: 2.3.1
- 主要言語
- Python
- スター
- 1.9k
- フォーク
- 205
- 平均マージ
- 2時間 2分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
faust-streaming/faust のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
faust-streaming/faust#804 ·
-
scripts/install script forces use of ./venv virtualenv, impossible to use with virtualenvwrapperオープン
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
faust-streaming/faust#28 · コメント 1 件 ·
-
[BUG] SASL PLAINTEXT producer initialization fails : missing sasl_plain_username/password対応中かも @wbarnha が 56 日前に担当しました。 オープン
faust-streaming/faust#794 · コメント 2 件 · リアクション 1 件 · 担当者 2 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
faust-streaming/faust#670 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
faust-streaming/faust#666 ·
faust-streaming/faust の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
[Maintainer] task area:visualizer
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
RailtownAI/railtracks#1824 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
apache/datafusion#27688 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
heasarc/heasarc-tutorials#317 ·
-
bug good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
mloda-ai/mloda-registry#1664 ·
メンテナーはふだん 1 日以内に返信