Does Faust Streaming Consumer retry the offset commit if it fails?

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

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

評価

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

調査の方向性

The issue asks whether Faust's consumer retries a failed offset commit after an UnknownTopicOrPartitionError during broker rotation, and whether that can cause re-reads or message loss. Search the codebase for the logged text 'OffsetCommit failed' to find where commit errors are handled, then trace what happens to the offset after that error. Done means the retry and redelivery behaviour is confirmed in code and answered in the thread, ideally with a test or docs note; the thread has had no comment in about 940 days, so confirm with a maintainer first.

索引モデルが 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

N/A

Expected behavior

After investigating my consumer logs I found out the following error:

[ERROR] OffsetCommit failed for group gaming-processor on partition TopicPartition(topic='my_topic', partition=3) with offset OffsetAndMetadata(offset=29426192, metadata=''): UnknownTopicOrPartitionError

This error occurred when my kafka broker leader pod on GKE was rotating. I think this error is expected while rebalancing is occurring my question is if the application is going to retry to commit this offset again or will it only commit the next offset in the next commit wave? Additionally I would like to know if this can cause the consumer to re-read older messages that were already consumed or to lose any message that wasn't yet consumed.

Actual behavior

N/A

Full traceback

N/A

Versions

  • Python version = 3.12
  • Faust version = 0.10.11
  • Operating system = UNIX
  • Kafka version = 3.4
  • RocksDB version = N/A
主要言語
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 を短くまとめたダイジェスト。