Skip to content

rabbitmq: fix bug when late onReady callback causes duplicates#21138

Merged
kssenii merged 6 commits intoClickHouse:masterfrom
kssenii:rabbit-fix
Feb 26, 2021
Merged

rabbitmq: fix bug when late onReady callback causes duplicates#21138
kssenii merged 6 commits intoClickHouse:masterfrom
kssenii:rabbit-fix

Conversation

@kssenii
Copy link
Copy Markdown
Member

@kssenii kssenii commented Feb 24, 2021

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fixes #21112. Fixed bug that could cause duplicates with insert query (if one of the callbacks came a little too late).

Detailed description:
If onReady() callback was a little late, publishing could happen before it was received, which caused duplicates because onAck/onNack handlers were not set up yet.

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Feb 24, 2021
@kitaisreal kitaisreal self-assigned this Feb 24, 2021
@kssenii
Copy link
Copy Markdown
Member Author

kssenii commented Feb 26, 2021

test_storage_kafka/test.py::test_kafka_no_holes_when_write_suffix_failed - not related

@kssenii kssenii merged commit 02b12cd into ClickHouse:master Feb 26, 2021
robot-clickhouse pushed a commit that referenced this pull request Feb 26, 2021
robot-clickhouse pushed a commit that referenced this pull request Feb 26, 2021
robot-clickhouse pushed a commit that referenced this pull request Feb 26, 2021
robot-clickhouse pushed a commit that referenced this pull request Feb 26, 2021
@ClickHouse ClickHouse deleted a comment Feb 26, 2021
@ClickHouse ClickHouse deleted a comment Feb 26, 2021
@ClickHouse ClickHouse deleted a comment Feb 26, 2021
@ClickHouse ClickHouse deleted a comment Feb 26, 2021
@ClickHouse ClickHouse deleted a comment Feb 26, 2021
@ClickHouse ClickHouse deleted a comment Feb 26, 2021
@ClickHouse ClickHouse deleted a comment Feb 26, 2021
kitaisreal added a commit that referenced this pull request Feb 26, 2021
Backport #21138 to 21.1: rabbitmq: fix bug when late onReady callback causes duplicates
kitaisreal added a commit that referenced this pull request Feb 26, 2021
Backport #21138 to 20.12: rabbitmq: fix bug when late onReady callback causes duplicates
kitaisreal added a commit that referenced this pull request Feb 26, 2021
Backport #21138 to 21.2: rabbitmq: fix bug when late onReady callback causes duplicates
kssenii added a commit that referenced this pull request Feb 27, 2021
Backport #21138 to 20.11: rabbitmq: fix bug when late onReady callback causes duplicates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RabbitMQ ENGINE randomly re publishing messages

3 participants