Fix a bug in ClickHouse Keeper that causes digest mismatch during closing session#65198
Merged
antonio2368 merged 6 commits intoClickHouse:masterfrom Jun 18, 2024
Merged
Conversation
Contributor
|
This is an automated comment for commit d3e9751 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
c33967d to
2d37f7b
Compare
46a05af to
68ab0ed
Compare
Contributor
Author
|
Get the following error during FastTest. Will continue research it |
antonio2368
approved these changes
Jun 14, 2024
Contributor
Author
|
It looks like failed tests are no longer relevant to the changes. |
Member
|
@aalexfvk let's try merging with master one more time |
robot-clickhouse
added a commit
that referenced
this pull request
Jun 18, 2024
…igest mismatch during closing session
robot-clickhouse
added a commit
that referenced
this pull request
Jun 18, 2024
…igest mismatch during closing session
robot-clickhouse
added a commit
that referenced
this pull request
Jun 18, 2024
…igest mismatch during closing session
robot-clickhouse
added a commit
that referenced
this pull request
Jun 18, 2024
…igest mismatch during closing session
robot-ch-test-poll3
added a commit
that referenced
this pull request
Jun 18, 2024
Backport #65198 to 24.5: Fix a bug in ClickHouse Keeper that causes digest mismatch during closing session
robot-clickhouse-ci-2
added a commit
that referenced
this pull request
Jun 18, 2024
Backport #65198 to 24.3: Fix a bug in ClickHouse Keeper that causes digest mismatch during closing session
robot-ch-test-poll3
added a commit
that referenced
this pull request
Jun 18, 2024
Backport #65198 to 24.4: Fix a bug in ClickHouse Keeper that causes digest mismatch during closing session
antonio2368
added a commit
that referenced
this pull request
Jun 24, 2024
Backport #65198 to 23.8: Fix a bug in ClickHouse Keeper that causes digest mismatch during closing session
19 tasks
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.
When a session is closed (e.g. as result of dead session cleaning), but we get actual user commands for this session further in the log (e.g. as a consequences of network delay), this commands can be executed if closing session was only pre-committed.
But on another replica (or after restart and processing changelog) closing can be committed early and further commands for this session is not executed because authentication data for this session is already deleted during commit of close session command.
We end up with different state on different replicas and digest mismatch.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix a bug in ClickHouse Keeper that causes digest mismatch during closing session.
Documentation entry for user-facing changes
CI Settings (Only check the boxes if you know what you are doing):