Question: Throttle Reconnect Attempts when kafka is unavailable
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 22/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- kafka, python
調査の方向性
The payload names the aiokafka transport and its reconnect.backoff.ms option, but no Faust file or test. Start by finding how Faust passes broker configuration to the aiokafka transport, then reproduce the reconnect loop by running a Faust app against a stopped Kafka broker. The issue asks a question rather than specifying a change, so first confirm with maintainers what behaviour is wanted before writing code.
索引モデルが 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.
- Connect Faust App normally to a kafka broker
- Kill kafka process
Expected behavior
The reconnect attempts aren't really unexpected. Is there a way to throttle the reconnect attempts or stop the logs from filling so rapidly? I can't find how to pass configuration to the aiokafka transport, which I think can accept reconnect.backoff.ms.
Actual behavior
The logs are spam with Errors very quickly. It looks like 100ms delay.
Full traceback
◠[2024-04-26 13:04:28,809] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◝[2024-04-26 13:04:28,811] [35601] [ERROR] Unable to update metadata from [1]
◝[2024-04-26 13:04:28,852] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◞[2024-04-26 13:04:28,853] [35601] [ERROR] Group Coordinator Request failed: NodeNotReadyError: Attempt to send a request to node which is not ready (node id 1).
◝[2024-04-26 13:04:28,869] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◞[2024-04-26 13:04:28,870] [35601] [ERROR] Unable to update metadata from [1]
◞[2024-04-26 13:04:28,976] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◡[2024-04-26 13:04:28,977] [35601] [ERROR] Group Coordinator Request failed: NodeNotReadyError: Attempt to send a request to node which is not ready (node id 1).
◞[2024-04-26 13:04:28,982] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◡[2024-04-26 13:04:28,983] [35601] [ERROR] Unable to update metadata from [1]
◡[2024-04-26 13:04:29,089] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◟[2024-04-26 13:04:29,090] [35601] [ERROR] Group Coordinator Request failed: NodeNotReadyError: Attempt to send a request to node which is not ready (node id 1).
◡[2024-04-26 13:04:29,098] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◟[2024-04-26 13:04:29,098] [35601] [ERROR] Unable to update metadata from [1]
◟[2024-04-26 13:04:29,204] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◜[2024-04-26 13:04:29,204] [35601] [ERROR] Group Coordinator Request failed: NodeNotReadyError: Attempt to send a request to node which is not ready (node id 1).
◟[2024-04-26 13:04:29,209] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◜[2024-04-26 13:04:29,210] [35601] [ERROR] Unable to update metadata from [1]
◜[2024-04-26 13:04:29,316] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◠[2024-04-26 13:04:29,317] [35601] [ERROR] Group Coordinator Request failed: NodeNotReadyError: Attempt to send a request to node which is not ready (node id 1).
◜[2024-04-26 13:04:29,327] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◠[2024-04-26 13:04:29,328] [35601] [ERROR] Unable to update metadata from [1]
◝[2024-04-26 13:04:29,435] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◞[2024-04-26 13:04:29,436] [35601] [ERROR] Group Coordinator Request failed: NodeNotReadyError: Attempt to send a request to node which is not ready (node id 1).
◝[2024-04-26 13:04:29,441] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◞[2024-04-26 13:04:29,441] [35601] [ERROR] Unable to update metadata from [1]
◡[2024-04-26 13:04:29,546] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◟[2024-04-26 13:04:29,546] [35601] [ERROR] Group Coordinator Request failed: NodeNotReadyError: Attempt to send a request to node which is not ready (node id 1).
◡[2024-04-26 13:04:29,551] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◟[2024-04-26 13:04:29,551] [35601] [ERROR] Unable to update metadata from [1]
◟[2024-04-26 13:04:29,656] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◜[2024-04-26 13:04:29,656] [35601] [ERROR] Group Coordinator Request failed: NodeNotReadyError: Attempt to send a request to node which is not ready (node id 1).
◟[2024-04-26 13:04:29,660] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◜[2024-04-26 13:04:29,661] [35601] [ERROR] Unable to update metadata from [1]
◜[2024-04-26 13:04:29,766] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◠[2024-04-26 13:04:29,767] [35601] [ERROR] Group Coordinator Request failed: NodeNotReadyError: Attempt to send a request to node which is not ready (node id 1).
◜[2024-04-26 13:04:29,776] [35601] [ERROR] Unable connect to node with id 1: KafkaConnectionError: Connection at localhost:9092 closed
◠[2024-04-26 13:04:29,777] [35601] [ERROR] Unable to update metadata from [1]
◡[2024-04-26 13:04:29,881] [35601] [ERROR] Unable connect to node with id 1: Multiple exceptions: [Errno 61] Connect call failed ('::1', 9092, 0, 0), [Errno 61] Connect call failed ('127.0.0.1', 9092)
◟[2024-04-26 13:04:29,882] [35601] [ERROR] Group Coordinator Request failed: NodeNotReadyError: Attempt to send a request to node which is not ready (node id 1).
◠[2024-04-26 13:04:29,887] [35601] [ERROR] Unable connect to node with id 1: Multiple exceptions: [Errno 61] Connect call failed ('::1', 9092, 0, 0), [Errno 61] Connect call failed ('127.0.0.1', 9092) ```
# Versions
* Python version Cython 3.11.8
* Faust version v0.11.0
* Operating system Darwin x86_64
* Kafka version 3.7.0
* RocksDB version (if applicable) 9.0.0
- 主要言語
- 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時間 初心者へのやさしさ 62/100
OpenFreeEnergy/openfe#2371 ·
メンテナーはふだん 2 日以内に返信
-
HMDB's smiles file writes "None" for metabolites with an empty <smiles/> (file not currently used)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
NCATSTranslator/Babel#1269 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
404 on sample dataオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
bcgov/nr-hydrometric-rating-curve#443 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100