Skip to content

Fix possible errors on restart of ReplicatedMergeTree after failed quorum insert#42509

Closed
CurtizJ wants to merge 4 commits intoClickHouse:masterfrom
CurtizJ:fix-restart-after-quorum-insert
Closed

Fix possible errors on restart of ReplicatedMergeTree after failed quorum insert#42509
CurtizJ wants to merge 4 commits intoClickHouse:masterfrom
CurtizJ:fix-restart-after-quorum-insert

Conversation

@CurtizJ
Copy link
Copy Markdown
Member

@CurtizJ CurtizJ commented Oct 19, 2022

Changelog category (leave one):

  • Not for changelog

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Fix possible errors The local set of parts of table ... doesn't look like the set of parts in ZooKeeper on restart of ReplicatedMergeTree after failed quorum insert and detaching of table or restarting server.

@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-bugfix Pull request with bugfix, not backported by default label Oct 19, 2022
@CurtizJ
Copy link
Copy Markdown
Member Author

CurtizJ commented Oct 19, 2022

Partially related #9712.

Copy link
Copy Markdown
Member

@devcrafter devcrafter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried to run the test w/o changes in ReplicatedMergeTreeSink.cpp. It didn't fail but, I guess, it supposed to.

function thread2 {
for x in {100..199}; do
while true; do
$CLICKHOUSE_CLIENT --query "DETACH TABLE r$1"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have some comment regarding why we're doing here 'detach/attach'

@alexey-milovidov alexey-milovidov removed the pr-bugfix Pull request with bugfix, not backported by default label Dec 26, 2022
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Dec 26, 2022
@devcrafter devcrafter force-pushed the fix-restart-after-quorum-insert branch from a91eb16 to 0d42831 Compare December 26, 2022 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants