Skip to content

Better deletion of metadata in s3queue - #72810

Merged
kssenii merged 5 commits into
masterfrom
disable-metadata-deletion-in-s3-queue
Dec 9, 2024
Merged

kssenii merged 5 commits into
masterfrom
disable-metadata-deletion-in-s3-queue

Conversation

@kssenii

@kssenii kssenii commented Dec 4, 2024 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

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

Delete table metadata in keeper in Storage S3(Azure)Queue only after last table using this metadata is dropped.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

CI Settings (Only check the boxes if you know what you are doing):

  • Allow: All Required Checks
  • Allow: Stateless tests
  • Allow: Stateful tests
  • Allow: Integration Tests
  • Allow: Performance tests
  • Allow: All Builds
  • Allow: batch 1, 2 for multi-batch jobs
  • Allow: batch 3, 4, 5, 6 for multi-batch jobs

  • Exclude: Style check
  • Exclude: Fast test
  • Exclude: All with ASAN
  • Exclude: All with TSAN, MSAN, UBSAN, Coverage
  • Exclude: All with aarch64, release, debug

  • Run only fuzzers related jobs (libFuzzer fuzzers, AST fuzzers, etc.)
  • Exclude: AST fuzzers

  • Do not test
  • Woolen Wolfdog
  • Upload binaries for special builds
  • Disable merge-commit
  • Disable CI cache

@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-improvement Pull request with some product improvements label Dec 4, 2024
@robot-ch-test-poll1

robot-ch-test-poll1 commented Dec 4, 2024 •

Copy link
Copy Markdown
Contributor

This is an automated comment for commit 0087ad3 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
Integration testsThe integration tests report. In parenthesis the package type is given, and in square brackets are the optional part/total tests❌ failure
Successful checks
Check nameDescriptionStatus
BuildsThere's no description for the check yet, please add it to tests/ci/ci_config.py:CHECK_DESCRIPTIONS✅ success
Docs checkBuilds and tests the documentation✅ success
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✅ success
Flaky testsChecks if new added or modified tests are flaky by running them repeatedly, in parallel, with more randomization. Functional tests are run 100 times with address sanitizer, and additional randomization of thread scheduling. Integration tests are run up to 10 times. If at least once a new test has failed, or was too long, this check will be red. We don't allow flaky tests, read the doc✅ 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

@SmitaRKulkarni SmitaRKulkarni self-assigned this Dec 6, 2024

chassert(it->second.ref_count > 0);
if (--it->second.ref_count == 0)
const size_t registry_size = it->second->unregister(storage_id);

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.

maybe we should move registerIfNot and unregister inside the try catch block below, as they can fail for keeper fails. what do you think?


LOG_TRACE(log, "Adding {} to registry", self.table_id);

if (node_exists)

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.

Can be moved to the above if block

node2.query(f"DROP DATABASE IF EXISTS {db_name}")

node1.query(
f"CREATE DATABASE {db_name} ENGINE=Replicated('/clickhouse/databases/replicateddb', 'shard1', 'node1')"

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.

we already use this for some other test, the integration test fail looks related to this.

@SmitaRKulkarni SmitaRKulkarni left a comment

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.

Rest all LGTM

@kssenii

kssenii commented Dec 9, 2024

Copy link
Copy Markdown
Member Author

Integration tests (asan, old analyzer) [6/6] — fail: 1

test_storage_iceberg/test.py::test_evolved_schema_simple[True-hdfs-2]

@kssenii
kssenii added this pull request to the merge queue Dec 9, 2024
Merged via the queue into master with commit 63603cc Dec 9, 2024
@kssenii
kssenii deleted the disable-metadata-deletion-in-s3-queue branch December 9, 2024 17:02
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Dec 9, 2024
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-backports-created-cloud deprecated label, NOOP label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created-cloud deprecated label, NOOP pr-improvement Pull request with some product improvements pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants