Fixes the potential missed data during termination of Kafka engine table#11048
Merged
alexey-milovidov merged 3 commits intoClickHouse:masterfrom May 22, 2020
Merged
Conversation
azat
reviewed
May 19, 2020
|
|
||
| cancel = threading.Event() | ||
|
|
||
| i = [2] |
Member
There was a problem hiding this comment.
I guess a comment why this should be a list will be useful (I guess to allow changing it from the inner function)
Contributor
Author
There was a problem hiding this comment.
Yes. But i was just copy & paste that from the tests around :)
azat
reviewed
May 19, 2020
| time.sleep(12) | ||
|
|
||
| instance.query(''' | ||
| DROP TABLE test.kafka; |
Member
There was a problem hiding this comment.
and this triggers the issue, is my understanding correct?
alexey-milovidov
approved these changes
May 22, 2020
nikitamikhaylov
pushed a commit
to nikitamikhaylov/ClickHouse
that referenced
this pull request
May 23, 2020
…during_drop Fixes the potential missed data during termination of Kafka engine table (cherry picked from commit b82c633)
nikitamikhaylov
added a commit
that referenced
this pull request
May 23, 2020
* Merge pull request #10910 from filimonov/kafka_drop_hang_fix Fix for the hang during deletion of engine=Kafka (cherry picked from commit 0fd0711) * Merge pull request #10986 from ClickHouse/try-fix-use-after-free-mergetree Try to fix use-after-free error in MergeTree (cherry picked from commit 073dc2e) * Merge pull request #11048 from filimonov/kafka_missed_data_during_drop Fixes the potential missed data during termination of Kafka engine table (cherry picked from commit b82c633) * Merge pull request #11109 from ClickHouse/less_verbose_logging Less verbose logging in mutation finalization task (cherry picked from commit 1906762) * Merge pull request #11074 from Jokser/memory-leak-in-register-disk-s3 Fix memory leak in registerDiskS3 (cherry picked from commit 4a237fa) * Merge pull request #11038 from Enmk/parseDateTime64BestEffort_fix Fixed parseDateTime64BestEffort implementation (cherry picked from commit 5a0f356) Co-authored-by: alexey-milovidov <[email protected]> Co-authored-by: alesapin <[email protected]> Co-authored-by: Vitaly Baranov <[email protected]>
filimonov
pushed a commit
to filimonov/ClickHouse
that referenced
this pull request
Jun 8, 2020
…during_drop Fixes the potential missed data during termination of Kafka engine table (cherry picked from commit b82c633)
filimonov
pushed a commit
to filimonov/ClickHouse
that referenced
this pull request
Jun 8, 2020
…during_drop Fixes the potential missed data during termination of Kafka engine table (cherry picked from commit b82c633)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fixes the potential missed data during termination of Kafka engine table
Detailed description / Documentation draft:
During termination of the table, it was possible to stop reading in the middle of the polled batch but commit the whole batch. After continuing consumption it would lead to skipped messages.
Now after termination start we return don't store / commit the offset.
Closes #11034
/cc @azat