Skip to content

Add concurrency tests for backups. - #39359

Closed
vitlibar wants to merge 1 commit into
ClickHouse:masterfrom
vitlibar:add-concurrent-tests-for-backups
Closed

vitlibar wants to merge 1 commit into
ClickHouse:masterfrom
vitlibar:add-concurrent-tests-for-backups

Conversation

@vitlibar

@vitlibar vitlibar commented Jul 18, 2022 •

Copy link
Copy Markdown
Member

Changelog category:

  • Not for changelog

Add concurrency tests for backups

@vitlibar vitlibar changed the title Add concurrent tests for backups. Add concurrency tests for backups. Jul 18, 2022
@robot-clickhouse robot-clickhouse added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jul 18, 2022
@vitlibar
vitlibar force-pushed the add-concurrent-tests-for-backups branch from e70b3aa to 5823b23 Compare July 18, 2022 18:42
@vitlibar
vitlibar force-pushed the add-concurrent-tests-for-backups branch from 5823b23 to 43b939d Compare July 18, 2022 18:43
@tavplubix

Copy link
Copy Markdown
Member

Is it possible to add a functional test btw?

@vitlibar

Copy link
Copy Markdown
Member Author

Is it possible to add a functional test btw?

What is wrong with integration tests?

@vitlibar
vitlibar marked this pull request as draft July 18, 2022 19:41
@tavplubix

tavplubix commented Jul 18, 2022 •

Copy link
Copy Markdown
Member

Is it possible to add a functional test btw?

What is wrong with integration tests?

Integration tests are okay. But more tests is better! Functional tests have major advantage: by writing one functional test you get multiple tests for free, because:

  • There are Stress Tests (based on functional tests) with ThreadFuzzer and extra checks and hardenings (server-can-restart-check, Hung Check, BC check, database engine randomization, fault injection in MemoryTracker fault injection in ZooKeeper client, etc)
  • We run functional tests in different configurations, including checks with Ordinary and Replicated (on cluster of 3 nodes) database engines and DiskS3 (yes, minio is available in functional tests as well). Also there's a check with debug build (which is supposed to catch runtime assertions).
  • Functional tests are used as corpus for AST Fuzzer

Moreover:

  • We have really good examples of functional tests for concurrency (993, 1154 and similar), it would be great to combine these tests with backups
  • It's much easier to run and debug functional tests

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.

3 participants