Repository navigation
Do not abort on missing ETAG in AZURE - #130519
Conversation
|
Workflow [PR], commit [0f55c53] Summary: ❌
AI ReviewSummaryReviewed #130519 at Findings
Tests
Missing context / blind spots
Final Verdict
|
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units9 translation units recompiled, 20 s compile time in total, 9 of them have a recent master baseline. |
|
Backport labels have been automatically added based on https://github.com/clickhouse/clickhouse-core-incidents/issues/1193 Labels added:
These labels ensure backport PRs are properly created for each affected release version. The release automation will create backport PRs as needed based on these labels. |
Conflicts are with #130519 and its follow-ups on master, which fixed the abort in `Azure::ETag::ToString` the other way: `AzureBlobStorage::getETag` throws `LOGICAL_ERROR` when the endpoint omits the `ETag`, and the read path now pins a download to the listed `ETag`. Resolution: master's design is kept for the Azure code. `AzureBlobStorageCommon`, `AzureObjectStorage.cpp` and `ReadBufferFromAzureBlobStorage.cpp` are taken from master, so `getETagOrEmpty` is gone, and `gtest_azure_object_storage_metadata.cpp`, which pinned an empty tag from an Azure answer, is removed. What remains of this change is the hardening of the consumers of an `ETag` (Iceberg `version-hint.text`, `ObjectStorageQueue` deduplication token), which still applies to storages that may not report a tag. Other conflicts are textual: `CachedObjectStorage.h` (`[[nodiscard]]`), `gtest_metadata_plain_rewritable_disk.cpp` (both tests kept), `AlterDropPartitionExecutor.cpp` (statistics file is written before the guarded commit), `StorageObjectStorageQueue.cpp` (log line). Co-Authored-By: Claude Fable 5.2 <[email protected]>
My reasoning:
Azure::ETag::ToStringcallsAZURE_ASSERT, which is a barestd::abortin release builds — so an endpoint that omits the optional ETag header could take the whole server down, remotely, through anyazureBlobStorage(...)call with a user-supplied URL.ETag is optional only on paper: Azure itself and every known compatible implementation (including Azurite and azurite-rs, which our CI runs against) send it in every
GetProperties,ListBlobsandDownloadanswer.Hence we refuse it outright instead of handling it gracefully:
ETag(Iceberg version hint,ObjectStorageQueuededuplication) against a missing tag #120908) silently weakens everything that relies on the tag — read-generation validation, per-chunk dedup tokens, the Iceberg version-hint compare-and-swap — and would require fail-close hardening in each consumer, for endpoints that do not legitimately exist.Trade-offs accepted: an innocent header-stripping proxy in front of real Azure gets the same refusal (the message states the endpoint is non-conforming), and since constructing
LOGICAL_ERRORaborts debug/sanitizer builds, the regression tests run in release builds only.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Treat an Azure answer without an ETag as
LOGICAL_ERRORWorkflow [PR]
Sync PR [sync-upstream/pr/130519]
Version info
26.11.1.2643-master(included in26.11and later)