Skip to content

Minor fix for StorageProxy - #101128

Merged
alexey-milovidov merged 12 commits into
masterfrom
minor-storageproxy
Apr 10, 2026
Merged

alexey-milovidov merged 12 commits into
masterfrom
minor-storageproxy

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Mar 29, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Version info

  • Merged into: 26.4.1.760

@clickhouse-gh

clickhouse-gh Bot commented Mar 29, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [917fb54]

Summary: ✅


AI Review

Summary

This PR changes StorageProxy::getName from StorageProxy to Proxy and updates stateless tests accordingly. The change is user-visible in system.tables.engine and can break existing engine-name filters/automation. Because it alters externally observable behavior without compatibility handling and is marked Not for changelog, I cannot approve in the current form.

Findings

❌ Blockers

  • [src/Storages/StorageProxy.h:19] Renaming the engine string to Proxy changes system.tables.engine output for proxy-backed tables. This is a backward-incompatible behavioral change for existing queries/scripts filtering on StorageProxy.
    Suggested fix: keep getName returning StorageProxy, or introduce an explicit compatibility path (setting/dual handling) and document migration impact.

💡 Nits

  • [tests/queries/0_stateless/00076_system_columns_bytes.sql:16] PR metadata says Not for changelog, but this is a user-visible behavior change and should be reflected in changelog metadata.
    Suggested fix: use Backward Incompatible Change (or another appropriate category) and add a specific user-facing changelog entry describing old/new engine values and migration guidance.
ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ❌ system.tables.engine value changes from StorageProxy to Proxy without compatibility mechanism.
SettingsChangesHistory.cpp ➖
PR metadata quality ⚠️ Not for changelog conflicts with user-visible behavior change.
Safe rollout ⚠️ Rollout can break existing filters/automation that match StorageProxy.
Compilation time ✅
No large/binary files ✅
Final Verdict
  • Status: ❌ Block
  • Minimum required actions:
    1. Preserve backward compatibility for engine naming (or add an explicit compatibility mechanism).
    2. Fix PR changelog metadata and include a specific migration-oriented changelog entry if behavior remains changed.

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Mar 29, 2026
…e_function`

The test expected `StorageProxy` as the engine name, but the PR renamed it to `Proxy`.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Comment thread src/Storages/StorageProxy.h Resolved
@tiandiwonder tiandiwonder self-assigned this Mar 30, 2026

@tiandiwonder tiandiwonder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why do we change the name from 'StorageProxy' to 'Proxy'? we also have 'TableProxy'.

Comment thread src/Storages/StorageProxy.h Resolved

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

LGTM

@alexey-milovidov

Copy link
Copy Markdown
Member Author

@tiandiwonder, engine names don't have Storage, for example, StorageMergeTree identifies as MergeTree and StorageDistributed identifies as Distributed. Also, DatabaseOrdinary identifies as Ordinary, StorageObjectStorage is named ObjectStorage, and InterpreterKillQueryQuery is responsible for the KILL QUERY query.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

The Stress test (arm_msan) failure is fixed by #101239, which should be merged first. After it is merged, please update the branch to include the fix.

@alexey-milovidov

Copy link
Copy Markdown
Member Author

The MSan stress test failure (MemorySanitizer: use-of-uninitialized-value, STID 4179-5154 or 4148-3044) is a known pre-existing issue unrelated to this PR. Fix: #102158

@clickhouse-gh

clickhouse-gh Bot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.00% 84.00% +0.00%
Functions 90.90% 90.90% +0.00%
Branches 76.60% 76.50% -0.10%

Changed lines: 66.67% (2/3) · Uncovered code

Full report · Diff report

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Apr 10, 2026
Merged via the queue into master with commit e4fb059 Apr 10, 2026
163 checks passed
@alexey-milovidov
alexey-milovidov deleted the minor-storageproxy branch April 10, 2026 01:20
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 10, 2026
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 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.

3 participants