Skip to content

Antalya 25.8 backports of #88490 and #89999#1475

Merged
zvonand merged 3 commits intoantalya-25.8from
backport/antalya-25.8/89999
Mar 4, 2026
Merged

Antalya 25.8 backports of #88490 and #89999#1475
zvonand merged 3 commits intoantalya-25.8from
backport/antalya-25.8/89999

Conversation

@ianton-ru
Copy link

@ianton-ru ianton-ru commented Mar 4, 2026

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

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

For MergeTree tables using object storage which do not support writing with append, it will not support transactions. (ClickHouse#88490 by @tuanpach)
Check if encrypted disks support writing with append (ClickHouse#89999 by @tuanpach)
Closes ClickHouse#84669

Documentation entry for user-facing changes

...

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Performance tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All with Aarch64
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • Tiered Storage (2h)

@ianton-ru
Copy link
Author

@codex review

@github-actions
Copy link

github-actions bot commented Mar 4, 2026

Workflow [PR], commit [f16982f]

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6890496805

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

std::map<Int64, PreparedSetsCachePtr::weak_type> mutation_prepared_sets_cache;
PlainLightweightUpdatesSync lightweight_updates_sync;

const bool support_transaction;

Choose a reason for hiding this comment

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

P2 Badge Avoid caching transaction support for table lifetime

support_transaction is now a const bool computed only in the constructor, but MergeTree settings can change at runtime (ALTER ... MODIFY SETTING disk/storage_policy handled in MergeTreeData::changeSettings), which changes the table's effective disks after construction. With this cache, supportsTransactions() can return a stale value, so a table may keep allowing transactional writes after switching to a non-append-capable object-storage layout (or keep rejecting them after switching back), causing behavior that no longer matches actual disk capabilities.

Useful? React with 👍 / 👎.

Copy link
Author

Choose a reason for hiding this comment

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

Good point, but don't want to fix it in backport.

@ianton-ru ianton-ru force-pushed the backport/antalya-25.8/89999 branch 2 times, most recently from e83e65e to af3fc30 Compare March 4, 2026 09:48
tuanpach added 2 commits March 4, 2026 10:49
…tion-for-non-append-supporting-disks

Not support transaction for tables with disks which do not support writing with append.

Signed-off-by: Anton Ivashkin <ianton@live.com>
Check if encrypted disks support writing with append

Signed-off-by: Anton Ivashkin <ianton@live.com>
@ianton-ru ianton-ru force-pushed the backport/antalya-25.8/89999 branch from af3fc30 to 7877582 Compare March 4, 2026 09:49
@zvonand zvonand merged commit c1b49a6 into antalya-25.8 Mar 4, 2026
462 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stress test fails with Disk does not support WriteMode::Append

3 participants