Faust agent didn't response after long period of inactivity in kafka topic
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 12/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- kafka, python
- Domaine
- distributed-systems, stream-processing
Piste de recherche
The traceback names AIOKafkaConsumerThread, the aiokafka fetch path (NodeNotReadyError, 'has not sent fetch request'), and a Monitor timer, but no source file. Start by finding where the consumer thread issues fetch requests and how it recovers after broker connection errors. The report has no reproduction, so a first step is an idle-period test that shows whether fetching resumes. Done means a documented cause or a reproducible test, and this needs maintainer input first.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Checklist
- I have included information about relevant versions
- I have verified that the issue persists when using the
masterbranch of Faust.
Steps to reproduce
I ran faust streaming like that
// faust app
faust_app = providers.Singleton(
App,
id=config.crm_kafka_group(),
broker=brokers,
store=config.rocksdb(),
)
// faust app in container (from dependency_injector import containers)
container.faust_app().agent(channel=container.topic_in(), name="faust_agent")(faust_agent)
// func itself
async def faust_agent(
records,
topic_error: Topic = Provide[Container.topic_error],
):
async for record in records:
do...
That's all, later none messages were in kafka for 27 days, first 18 days were ok, faust works normally, but later it started to generate logs more and faster, check pic below. And when we push message into kafka.
Expected behavior
Later, I tryied to reproduce, but normally even having this kind of errors faust catch new messages and process them.
Actual behavior
Faust didn't read it. After rebooting application it started read messages
Thoughts
I tried to reproduce the error in short distance, but couldn't. I think something happened in a long range distance when kafka hasn't got any activities, CPU and RAM were ok that day. Maybe you have some ideas what could happen?
Full traceback
[2023-09-18 15:42:38,960] [1] [ERROR] Unable connect to node with id 1:
[2023-09-18 15:42:38,961] [1] [ERROR] Failed fetch messages from 1: NodeNotReadyError: Attempt to send a request to node which is not ready (node id 1).
[2023-09-18 15:46:27,729] [1] [ERROR] Unable connect to node with id 1:
[2023-09-18 15:46:27,729] [1] [ERROR] Failed fetch messages from 1: NodeNotReadyError: Attempt to send a request to node which is not ready (node id 1).
[2023-09-18 15:47:36,079] [1] [INFO] Timer Monitor.sampler woke up too late, with a drift of +0.48203237913548946 runtime=2.4840235710144043e-05 sleeptime=1.4820323791354895
[2023-09-18 15:47:37,788] [1] [ERROR] [^---AIOKafkaConsumerThread]: Thread keepalive is not responding...
[2023-09-18 15:47:37,788] [1] [INFO] Timer _thread_keepalive-AIOKafkaConsumerThread woke up too late, with a drift of +2.1931118201464415 runtime=5.8999285101890564e-05 sleeptime=3.1931118201464415
[2023-09-19 16:54:25,332] [1] [ERROR] [^---AIOKafkaConsumerThread]: Aiokafka has not sent fetch request for TP(topic='prod.communication.emailout', partition=8) since start (started 20.33 days ago)
[2023-09-19 16:54:25,333] [1] [ERROR] [^---AIOKafkaConsumerThread]: Aiokafka has not sent fetch request for TP(topic='prod.c', partition=5) since start (started 20.33 days ago)
[2023-09-19 16:54:25,335] [1] [ERROR] [^---AIOKafkaConsumerThread]: Aiokafka has not sent fetch request for TP(topic='prod.communication.emailout', partition=7) since start (started 20.33 days ago)
[2023-09-19 16:54:25,335] [1] [ERROR] [^---AIOKafkaConsumerThread]: Aiokafka has not sent fetch request for TP(topic='prod.c', partition=4) since start (started 20.33 days ago)
[2023-09-19 16:54:25,336] [1] [ERROR] [^---AIOKafkaConsumerThread]: Aiokafka has not sent fetch request for TP(topic='communication.private.services.crm.connect.prod-__assignor-__leader', partition=0) since start (started 20.33 days ago)
[2023-09-19 16:54:25,336] [1] [ERROR] [^---AIOKafkaConsumerThread]: Aiokafka has not sent fetch request for TP(topic='prod.c', partition=7) since start (started 20.33 days ago)
[2023-09-19 16:54:32,384] [1] [ERROR] [^---AIOKafkaConsumerThread]: Aiokafka has not sent fetch request for TP(topic='prod.communication.emailout', partition=6) since start (started 20.33 days ago)
[2023-09-19 16:54:32,386] [1] [ERROR] [^---AIOKafkaConsumerThread]: Aiokafka has not sent fetch request for TP(topic='prod.c', partition=9) since start (started 20.33 days ago)
[2023-09-19 16:54:32,387] [1] [ERROR] [^---AIOKafkaConsumerThread]: Aiokafka has not sent fetch request for TP(topic='prod.communication.emailout', partition=8) since start (started 20.33 days ago)
[2023-09-19 16:54:32,388] [1] [ERROR] [^---AIOKafkaConsumerThread]: Aiokafka has not sent fetch request for TP(topic='prod.c', partition=5) since start (started 20.33 days ago)
[2023-09-19 16:54:32,389] [1] [ERROR] [^---AIOKafkaConsumerThread]: Aiokafka has not sent fetch request for TP(topic='prod.communication.emailout', partition=7) since start (started 20.33 days ago)
[2023-09-19 16:54:32,390] [1] [ERROR] [^---AIOKafkaConsumerThread]: Aiokafka has not sent fetch request for TP(topic='prod.c', partition=4) since start (started 20.33 days ago)
and so on untill it get 27 days
Versions
- Python version 3.10.8
- Faust version 0.10.9
- Operating system docker container python:3.10.8-slim-bullseye
- Kafka version 3.4.0
- RocksDB version (if applicable)
- Langage dominant
- Python
- Étoiles
- 1.9k
- Forks
- 205
- Merge moyen
- 2 h 2 min
- PR mergées (30 j)
- 1
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de faust-streaming/faust
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 86/100
faust-streaming/faust#804 ·
-
scripts/install script forces use of ./venv virtualenv, impossible to use with virtualenvwrapperOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 62/100
faust-streaming/faust#28 · 1 commentaire ·
-
[BUG] SASL PLAINTEXT producer initialization fails : missing sasl_plain_username/passwordPeut-être pris @wbarnha l’a pris il y a 56 jours. Ouverte
faust-streaming/faust#794 · 2 commentaires · 1 réaction · 2 personnes assignées ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 18/100
faust-streaming/faust#670 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 18/100
faust-streaming/faust#666 ·
Toutes les issues de faust-streaming/faust
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
ActivityWatch/docs#223 ·
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePeut-être pris @jianyx1 l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
volcengine/OpenViking#8354 ·
Les mainteneurs répondent en général sous 1 jour
-
comp/tools P2 tool/skills type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
NousResearch/hermes-agent#159541 ·
Les mainteneurs répondent en général sous 1 jour
-
multilabel_margin_loss returns an unwritten scalar for an empty CPU batch with reduction='sum'Ouvertebot-triaged module: correctness (silent) module: cpu module: empty tensor module: loss triage review
Difficulté 1/5 Moins d'une heure Accessibilité débutants 80/100
Les mainteneurs répondent en général sous 1 jour
-
request-theme
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
LizardByte/ThemerrDB#10167 · 1 commentaire ·