Rebalancing problem with Faust Streaming consumer

オープン
#594 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
18/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
kafka, python

調査の方向性

The payload names no source files, so start by reproducing the report: run a Faust Streaming 0.10.14 consumer against a Kafka broker, restart the broker, and watch for the repeated 'Marking the coordinator dead' and rejoin log lines. The report also says the loop involves the topic the app creates for task distribution, not the topic being consumed, so check which topic the group coordinator uses. Done means the consumer rebalances after a broker restart without a redeploy, and a test or a clear root cause is recorded. Nobody has answered in 536 days, so confirm with a maintainer before starting.

索引モデルが issue の本文から書いたものです。

説明

Checklist

  • I have included information about relevant versions
  • I have verified that the issue persists when using the master branch of Faust.

Steps to reproduce

Hello everyone hope I find you well!

I'm facing an odd situation when using Faust Streaming in my consumer app. So I have a Kafka Consumer that connects to my Kafka GCP instance on my dev environment in Google Cloud. However when sometimes my Kafka instance restarts or goes down to lack of resources when my consumer tries to rebalance it stays stuck in a loop with the following errors logging:

[2023-12-20 10:23:47,912] [11] [INFO] Discovered coordinator 2 for group myapp-dev-processor 
[2023-12-20 10:23:47,912] [11] [INFO] (Re-)joining group myapp-dev-processor 
[2023-12-20 10:23:47,915] [11] [WARNING] Marking the coordinator dead (node 2)for group myapp-dev-processor. 

This is happening frequently for us only on our dev environment but we are investigating what may be the root cause of this issue and how to tackle it so that if it occurs in prod we have an way to act fast. We know the consumer connects to our kafka instance with success but then this error happens and it stays stuck in an endless loop. We tried search for any error log on our kafka instances but we don't find anything so we think this may be a problem within the library somehow.

I can also say that the only fix we discovered until now is to re-deploy both the kafka instance on GCP and our consumer project again which is a thing we can't do in production if this situations occurs. I don't have detailed knowledge of the project but it seems to be a problem related with the topic the app creates to handle task distribution because the name of the topic is not the one from where we consume data but the one that is created by the app.

Does anyone have any idea why this may be happening? We tried to search in the project repo, chatgpt and stack overflow but without any luck.

Expected behavior

Consumer should rebalance partitions normally.

Actual behavior

Full traceback

Versions

faust-aioeventlet==0.6

faust-streaming==0.10.14

confluent-kafka==2.1.1

Python 3.12

主要言語
Python
スター
1.9k
フォーク
205
平均マージ
2時間 2分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

faust-streaming/faust のほかの issue

faust-streaming/faust の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。