Repository navigation
Stable 26.8 Backport of #124721 - Do not check Azure disks from the server config against remote_url_allow_hosts - #2906
Conversation
…url-allow-hosts Do not check Azure disks from the server config against remote_url_allow_hosts Conflicts committed as-is; the next commit resolves them: - src/Disks/DiskObjectStorage/ObjectStorages/AzureBlobStorage/AzureBlobStorageCommon.cpp (both modified) - src/Disks/DiskObjectStorage/ObjectStorages/ObjectStorageFactory.cpp (both modified) - tests/integration/test_allowed_url_from_config/test.py (both modified) - tests/integration/test_merge_tree_azure_blob_storage/test.py (both modified)
Kept the PR's Azure disk host-check, warning and test changes; dropped the unrelated master-only credential-restriction code and tests.
|
Port-AL: cherry-pick conflicts resolved by AI Conflicted files:
Commits:
|
|
@blau-ai resolve conflicts |
# Conflicts: # tests/integration/test_allowed_url_from_config/test.py
|
Conflicts with One file conflicted:
These files merged without conflicts:
Check: after the merge, |
CI triage for
|
| Check | Classification | Caused by this PR? |
|---|---|---|
| AST fuzzer (amd_debug, targeted) | Known upstream bug in parallel replicas | No |
| DCO | Commits have no Signed-off-by line |
No (all stable-26.8 backports fail this) |
1. AST fuzzer (amd_debug, targeted): Logical error: Can't determine table for parallel replicas (STID: 3634-4123)
The fuzzer hit an assertion in src/Planner/findParallelReplicasQuery.cpp:639 (buildQueryPlanForParallelReplicas). The query was a RIGHT JOIN of two plain MergeTree tables, combined with INTERSECT and wrapped in viewExplain:
SELECT _partition FROM (SELECT ..., * FROM viewExplain('EXPLAIN', '', (SELECT * FROM (SELECT key FROM t_plain_left__fuzz_44) AS l
RIGHT JOIN (SELECT key FROM t_replicated_right__fuzz_11) AS r ON r.key = l.key
SETTINGS parallel_replicas_prefer_local_join = 1, parallel_replicas_for_non_replicated_merge_tree = 0, ...
INTERSECT ...)) SAMPLE 1) WHERE ...
- This PR doesn't touch that code. The diff only changes Azure disk and object-storage code (
AzureBlobStorageCommon.cpp,ObjectStorageFactory.cpp,WriteBufferFromAzureDataLakeStorage.*,PocoHTTPClient.cpp,DataLakeConfiguration.h) plus integration tests. Nothing in the stack trace goes near the planner or parallel replicas. - The bug is already known upstream: Logical error 'Can't determine table for parallel replicas' for RIGHT JOIN whose right side has no eligible table ClickHouse/ClickHouse#113292 (open), "Logical error 'Can't determine table for parallel replicas' for RIGHT JOIN whose right side has no eligible table". That is the same failure: a RIGHT JOIN whose right side can't use parallel replicas, because
parallel_replicas_for_non_replicated_merge_tree = 0and the table is a plain MergeTree. Earlier reports with the same message: Logical error: Can't determine table for parallel replicas (STID: 3634-41e5) ClickHouse/ClickHouse#119408 and Logical error: Can't determine table for parallel replicas (STID: None) ClickHouse/ClickHouse#96196. - Next step: none needed on this PR. Safe to ignore or re-run. A fix belongs in its own backport once Logical error 'Can't determine table for parallel replicas' for RIGHT JOIN whose right side has no eligible table ClickHouse/ClickHouse#113292 is fixed upstream.
- Logs: fatal.log, job report
2. DCO
None of the three commits has a Signed-off-by line: the upstream merge commit 090296c, the conflict-resolution commit 041abda and the base merge d45b536. DCO fails the same way on the other open stable-26.8 backports (#2932, #2911, #2902), so this is expected for backports and isn't specific to this PR. If DCO has to pass to merge, a maintainer can set it to pass in the DCO app. Rewriting history to add sign-offs would need a force-push, which I'm not allowed to do.
Bottom line: I found no CI failures caused by this PR, so I'm not suggesting any fixes. The changed integration tests (test_allowed_url_from_config, test_merge_tree_azure_blob_storage, test_storage_iceberg_disks) ran in the amd integration jobs that weren't excluded, and those jobs passed.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix server startup failure when an Azure Blob Storage disk from the server configuration has an endpoint that is not listed in
remote_url_allow_hosts(since 26.7). Such disks are no longer checked against this list, like S3 disks, also when a data lake table uses one viaSETTINGS disk = .... Disks created bydisk(...)in a query, URLs of table functions and table engines, and redirects are still checked. An existing table on adisk(...)disk whose host is no longer allowed loads with a warning and keeps reading and writing to that host, as for S3 disks; a newdisk(...)with that host is rejected. Closes ClickHouse#124431. (ClickHouse#124721 by @groeneai)Documentation entry for user-facing changes
...
CI/CD Options
Exclude tests:
Regression jobs to run: