Kafka messages were processed twice after rebalancing

Abierto
#502 0 comentarios 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
18/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
kafka, python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

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

Lenguaje dominante
Python
Estrellas
1.9k
Forks
205
Merge medio
2 h 2 min
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de faust-streaming/faust

Todos los issues de faust-streaming/faust

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.