Repository navigation
Fix MSan integration tests related to Azure and SSH protocol - #97053
Merged
Merged
Conversation
Update the OpenSSL submodule with `__msan_unpoison` annotations in `ossl_x25519` and `ossl_x25519_public_from_private`. This fixes the MSan false positive caused by assembly-based X25519 scalar multiplication (`x25519-x86_64.s`) whose memory writes are invisible to MSan. Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Remove `setApplicationType` call from `ClientEmbedded::run`: the application type is already set on the shared context at server startup, so writing it again from a worker thread races with concurrent readers (e.g. `SystemLog` flushing via `getApplicationType`). - Initialize `query_kind` member in `ClientBase` to `ClientInfo::QueryKind::INITIAL_QUERY`: in the regular client flow it is set from command-line options, but `ClientEmbedded` never sets it, so `initClientContext` reads an uninitialized value. https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=96996&sha=c83b21f3ae8ef16ea3d11e02eb4a38f026da4265&name_0=PR&name_1=Stateless%20tests%20%28amd_tsan%2C%20flaky%20check%29 https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=96996&sha=c83b21f3ae8ef16ea3d11e02eb4a38f026da4265&name_0=PR&name_1=Stateless%20tests%20%28amd_msan%2C%20flaky%20check%29 Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Fix use-of-uninitialized-value in Azure `PocoAzureHTTPClient::getByteLatencyType`:
the retry context value was stored as `int` (4 bytes) via `WithValue(..., 0)` but
read as `size_t` (8 bytes) via `TryGetValue<size_t>`, leaving 4 bytes uninitialized.
Changed to `size_t{0}`.
- Initialize `is_internal` member in `QueryLogElement` to fix potential MSan report
during system log flushing.
- Skip `test_storage_delta` and `test_storage_delta_disks` under MSan because they
use Rust code (delta-kernel-rs) which is not instrumented.
https://play.clickhouse.com/play?user=play&run=1#U0VMRUNUIGNoZWNrX25hbWUsIHRlc3RfbmFtZSwgcmVwb3J0X3VybApGUk9NIGNoZWNrcwpXSEVSRSBjaGVja19uYW1lIExJS0UgJ0ludGVncmF0aW9uJScKICAgIEFORCBjaGVja19zdGFydF90aW1lID49IG5vdygpIC0gSU5URVJWQUwgMjQgSE9VUgogICAgQU5EIChoZWFkX3JlZiA9ICdtYXN0ZXInIEFORCBzdGFydHNXaXRoKGhlYWRfcmVwbywgJ0NsaWNrSG91c2UvJykpCiAgICBBTkQgdGVzdF9zdGF0dXMgIT0gJ1NLSVBQRUQnCiAgICBBTkQgKHRlc3Rfc3RhdHVzIExJS0UgJ0YlJyBPUiB0ZXN0X3N0YXR1cyBMSUtFICdFJScpCiAgICBBTkQgY2hlY2tfc3RhdHVzICE9ICdzdWNjZXNzJwogICAgQU5EIGNoZWNrX25hbWUgTk9UIExJS0UgJ2xpYkZ1enplciUnCiAgICBBTkQgY2hlY2tfbmFtZSAhPSAnQ2xpY2tIb3VzZSBLZWVwZXIgSmVwc2VuJwpPUkRFUiBCWSBjaGVja19uYW1lLCB0ZXN0X25hbWUsIGNoZWNrX3N0YXJ0X3RpbWU=
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Contributor
|
Workflow [PR], commit [28c9495] Summary: ❌
|
…h `USE_DELTA_KERNEL_RS` and skip flaky tests The `deltaLakeAzureCluster` table function was registered under `#if USE_AZURE_BLOB_STORAGE` but the corresponding `DeltaLakeAzure` storage engine requires `USE_DELTA_KERNEL_RS`. This mismatch caused a `LOGICAL_ERROR` exception when the table function tried to look up its engine for access checking, crashing the server in debug builds. Fixes: - Add `USE_DELTA_KERNEL_RS` guard to `deltaLakeAzureCluster` registration (.cpp, .h, template) - Change `getSourceAccessObject` from `LOGICAL_ERROR` to `UNKNOWN_STORAGE` for unknown engines - Fix copy-paste in documentation: "Iceberg" → "DeltaLake" for `deltaLakeAzureCluster` - Skip Delta Lake tests when `DeltaLake` engine is not available (query `system.table_engines`) - Conditionally handle Delta Lake entries in `test_mask_sensitive_info` based on engine availability - Skip timing-sensitive and memory-measurement tests under MSan: `test_ttl_compatibility`, `test_memory_limit_success`, `test_async_query_sending`, `test_when_s3_timeout_at_listing` Co-Authored-By: Claude Opus 4.6 <[email protected]>
alexey-milovidov
requested review from
divanik,
kssenii,
nikitamikhaylov,
scanhex12 and
vitlibar
February 16, 2026 06:40
| download_options.Range = {static_cast<int64_t>(range_begin), n}; | ||
| Azure::Core::Context azure_context = Azure::Core::Context().WithValue(PocoAzureHTTPClient::getSDKContextKeyForBufferRetry(), 0); | ||
|
|
||
| Azure::Core::Context azure_context = Azure::Core::Context().WithValue(PocoAzureHTTPClient::getSDKContextKeyForBufferRetry(), size_t{0}); |
- `test_mask_sensitive_info::test_create_table`: Fix expected error code from `UNKNOWN_TABLE` to `UNKNOWN_STORAGE` when `DeltaLake` engine is not available. - `test_max_bytes_ratio_before_external_group_by`: Skip under MSan due to increased memory usage hitting the server memory limit. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=97053&sha=f9ec529e4ff983e3a9a1c0bba4b5b091aba147e0&name_0=PR&name_1=Integration%20tests%20%28amd_msan%2C%203%2F6%29 Co-Authored-By: Claude Opus 4.6 <[email protected]>
This was referenced Feb 16, 2026
Closed
Closed
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Azure, SSH, and Arrow Flight had reads of uninitialized memory. Delta Lake cannot work under MSan at all due to Rust.
Version info
26.2.1.795