aio-libs / aio-libs/aiokafka

Producers hangs while stopping in frozen datetime context

Abierto
#1,060 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
1.4k
Forks
269
Merge medio
1 d 1 h
PR fusionados (30 d)
6

Descripción

**Describe the bug**
Producers created in a frozen datetime context fail to stop properly (freezes). When freezing the datetime using https://github.com/spulec/freezegun.

**Expected behaviour**
Producers successfully start & stop.

**Environment (please complete the following information):**
- aiokafka version (`python -c "import aiokafka; print(aiokafka.__version__)"`): `0.11.0`
- Kafka Broker version (`kafka-topics.sh --version`): -
- Other information (Confluent Cloud version, etc.): -

**Reproducible example**
The code hangs in here: https://github.com/aio-libs/aiokafka/blob/master/aiokafka/producer/producer.py#L386

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.