Skip to content

keeper-converter add the last logfile that is less than the zxid.#29030

Merged
alesapin merged 2 commits intoClickHouse:masterfrom
nicelulu:fix-keeper-converter
Sep 20, 2021
Merged

keeper-converter add the last logfile that is less than the zxid.#29030
alesapin merged 2 commits intoClickHouse:masterfrom
nicelulu:fix-keeper-converter

Conversation

@nicelulu
Copy link
Copy Markdown
Contributor

@nicelulu nicelulu commented Sep 14, 2021

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

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix bug in clickhouse-keeper-converter which can lead to some data loss while restoring from ZooKeeper logs (not snapshot).

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Sep 14, 2021
@nicelulu nicelulu changed the title add the last logfile that is less than the zxid. keeper-converter add the last logfile that is less than the zxid. Sep 14, 2021
@nicelulu
Copy link
Copy Markdown
Contributor Author

The log file name of zookeeper is the index where the log starts. If you only apply log files larger than the snapshot last index, part of the log will be missed.

@robot-clickhouse robot-clickhouse added pr-improvement Pull request with some product improvements and removed pr-bugfix Pull request with bugfix, not backported by default labels Sep 16, 2021
@nicelulu
Copy link
Copy Markdown
Contributor Author

@alesapin Can you review this pr, thank you.

@alesapin alesapin self-assigned this Sep 18, 2021
@alesapin alesapin merged commit f983381 into ClickHouse:master Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants