Skip to content

Randomization of tests with DETACH/ATTACH table - #55943

Closed
CurtizJ wants to merge 14 commits into
ClickHouse:masterfrom
CurtizJ:random-reattach-tables
Closed

CurtizJ wants to merge 14 commits into
ClickHouse:masterfrom
CurtizJ:random-reattach-tables

Conversation

@CurtizJ

@CurtizJ CurtizJ commented Oct 23, 2023

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Randomly execute DETACH/ATTACH queries for all tables that are used in query from test before its execution.

Continuation of #42336

@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Oct 23, 2023
@robot-clickhouse-ci-1

robot-clickhouse-ci-1 commented Oct 23, 2023 •

Copy link
Copy Markdown
Contributor

This is an automated comment for commit 435d8a7 with description of existing statuses. It's updated for the latest CI running

❌ Click here to open a full report in a separate page

Check nameDescriptionStatus
A SyncThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS⏳ pending
CI runningA meta-check that indicates the running CI. Normally, it's in success or pending state. The failed status indicates some problems with the PR⏳ pending
ClickHouse build checkBuilds ClickHouse in various configurations for use in further steps. You have to fix the builds that fail. Build logs often has enough information to fix the error, but you might have to reproduce the failure locally. The cmake options can be found in the build log, grepping for cmake. Use these options and follow the general build process⏳ pending
Fast testNormally this is the first check that is ran for a PR. It builds ClickHouse and runs most of stateless functional tests, omitting some. If it fails, further checks are not started until it is fixed. Look at the report to see which tests fail, then reproduce the failure locally as described here❌ failure
Mergeable CheckChecks if all other necessary checks are successful❌ failure
Successful checks
Check nameDescriptionStatus
Docs checkBuilds and tests the documentation✅ success
PR CheckThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Style checkRuns a set of checks to keep the code style clean. If some of tests failed, see the related log from the report✅ success

@alexey-milovidov

Copy link
Copy Markdown
Member

We need this :)

@alexey-milovidov

Copy link
Copy Markdown
Member

@CurtizJ This PR is amazing, we need it!

@alexey-milovidov

Copy link
Copy Markdown
Member

We need it.

@alexey-milovidov

Copy link
Copy Markdown
Member

We need this!

@alexey-milovidov

Copy link
Copy Markdown
Member

Let's continue.

@alexey-milovidov

Copy link
Copy Markdown
Member

@CurtizJ We need this!

@alexey-milovidov

Copy link
Copy Markdown
Member

Wow, this is so much needed!

@alexey-milovidov

Copy link
Copy Markdown
Member

@CurtizJ, this makes sense; let's continue!

@CurtizJ
CurtizJ force-pushed the random-reattach-tables branch from fee7479 to 474ca37 Compare May 15, 2024 16:53
@CurtizJ

CurtizJ commented May 17, 2024

Copy link
Copy Markdown
Member Author

02845_group_by_constant_keys : #64052
02906_force_optimize_projection_name: #63997

@alexey-milovidov

Copy link
Copy Markdown
Member

@CurtizJ Please continue!

@alexey-milovidov

Copy link
Copy Markdown
Member

@CurtizJ Let's continue!

@alexey-milovidov

Copy link
Copy Markdown
Member

Please, do it!

@alexey-milovidov

Copy link
Copy Markdown
Member

@CurtizJ, this will be very good, let's do it!

@aadant

aadant commented Aug 21, 2024

Copy link
Copy Markdown

yes I noticed that if you DETACH / ATTACH a partition on a live server you may lose data.

@alexey-milovidov

Copy link
Copy Markdown
Member

@aadant, how exactly?

@aadant

aadant commented Aug 21, 2024 •

Copy link
Copy Markdown

@aadant, how exactly?

We see it in 23.8 in one of our tables. I will submit a test case if I can reproduce it.

first the number of inactive parts creeps in and we run attach partition / detach partition on one partition on that table to force the inactive part deletion. But that in turn can lead to parts being detached (and lost from the table) in some cases. An inactive part is found in the detached directory if that occurs

@alexey-milovidov

Copy link
Copy Markdown
Member

I don't think it's a reasonable way to delete inactive parts - looks like a hack rather than a solution.
About inactive parts - you shouldn't worry about their number at all.

@aadant

aadant commented Aug 22, 2024

Copy link
Copy Markdown

I don't think it's a reasonable way to delete inactive parts - looks like a hack rather than a solution. About inactive parts - you shouldn't worry about their number at all.

Agreed on the hack. in our case, we accumulate 15TB of inactive parts on disk … so we had to worry about them !

@clickhouse-gh

clickhouse-gh Bot commented Oct 22, 2024

Copy link
Copy Markdown
Contributor

Dear @CurtizJ, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message.

1 similar comment
@clickhouse-gh

clickhouse-gh Bot commented Dec 24, 2024

Copy link
Copy Markdown
Contributor

Dear @CurtizJ, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message.

@azat azat self-assigned this Feb 15, 2025
@alexey-milovidov

Copy link
Copy Markdown
Member

We need this a lot!

@clickhouse-gh

clickhouse-gh Bot commented May 6, 2025

Copy link
Copy Markdown
Contributor

Dear @CurtizJ, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message.

@alexey-milovidov

Copy link
Copy Markdown
Member

@CurtizJ, this is a good thing, let's continue.

@alexey-milovidov

Copy link
Copy Markdown
Member

I need this a lot!

@clickhouse-gh

clickhouse-gh Bot commented Jul 15, 2025

Copy link
Copy Markdown
Contributor

Dear @CurtizJ, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message.

@alexey-milovidov

Copy link
Copy Markdown
Member

I'm very interested in this testing method!

@clickhouse-gh

clickhouse-gh Bot commented Sep 16, 2025

Copy link
Copy Markdown
Contributor

Dear @CurtizJ, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message.

2 similar comments
@clickhouse-gh

clickhouse-gh Bot commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

Dear @CurtizJ, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message.

@clickhouse-gh

clickhouse-gh Bot commented Nov 25, 2025

Copy link
Copy Markdown
Contributor

Dear @CurtizJ, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message.

@alexey-milovidov

Copy link
Copy Markdown
Member

Looking forward to having it merged, it is such a tremendously valuable change!

@alexey-milovidov

Copy link
Copy Markdown
Member

Continued in #96130

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.

5 participants