Repository navigation
Share S3 client cache per bucket - #96802
Conversation
|
Workflow [PR], commit [e23d72c] Summary: ✅
AI ReviewSummaryThis PR shares the Final VerdictStatus: ✅ Approve |
|
The only fail is CH Inc sync (nothing I can do about it) |
There was a problem hiding this comment.
The code looks good (except the string concatenation hackery, which must be fixed). But is it true that the same client can be used across the bucket? I think there could be corner cases when different IAM roles are authorised to different parts of the bucket.
This comment was marked as outdated.
This comment was marked as outdated.
|
After refreshing this in mind: the clients themselves are not shared. The only thing that is shared is |
|
@zvonand, sounds good! Please address review, fix failures, and let's merge. |
This comment was marked as outdated.
This comment was marked as outdated.
|
Reviews are addressed. |
|
Please fix failed tests. |
# Conflicts: # src/IO/S3/Client.h
|
@groeneai, link the fix for "Logical error: Column identifier A is already registered (STID: 4697-4326)" here. |
|
@alexey-milovidov The fix is in flight: #106025 ("Fix LOGICAL_ERROR 'Column identifier is already registered' in ALTER UPDATE with EXISTS"), MERGEABLE, CI running on commit d52ff95. STID 4697-4326 is a chronic trunk bug — multiple prior fixes (#100770, #101048, #101051, #101104) covered some code paths but missed the mutations re-analysis path that PR #106025 now closes. |
|
Dear @scanhex12, you haven't been active on this PR for 30 days. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
|
Merged the latest I reviewed the two failures from the previous run (commit
Built locally and the new S3 client-cache unit tests pass: Let's see the fresh CI run. |
|
Now it's only the same Fuzzer fail + some internal conflicts (CH Inc sync) |
|
Re: my earlier question about whether the same cache can be shared across a bucket when different IAM roles are authorized to different parts of it — I checked, and it is safe.
Both are physical-location facts about the bucket: which region it lives in and which endpoint hostname serves it. They are intrinsic to the So the corner case I worried about (different roles authorized to different parts of a bucket) does not affect what is cached: every role resolves the same region and URI for the bucket. Sharing the cache per The string-concatenation hashing concern is also addressed — it now uses Note on CI: the only red is the targeted AST fuzzer ( Merged |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 153/162 (94.44%) | Lost baseline coverage (was covered on master, now uncovered in this PR): 4 line(s) · Uncovered code |
|
this time, all the tests passed (except for CH Inc sync) |
|
Fixed the |
|
📊 Cloud Performance Report ✅ AI verdict: This PR changes S3 client-cache plumbing — it shares cached client state keyed by endpoint and bucket and adds refcounting — which affects S3 connection and region-detection setup, not query execution. The two flagged improvements (clickbench Q4 at -18.9% and Q15 at -16.0%) are pure aggregation SELECTs whose hot path this change does not touch, so it cannot plausibly account for double-digit speedups while every other query stays flat. With only 5 source runs and a baseline that's already drifting, these deltas are run-to-run variance rather than a real effect, so both are downgraded to not-sure. clickbenchFlagged queries (2 of 43)
q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 No significant changes Debug info
|
I cannot fix them as I do not know them 🥲 |
|
Triage of the
Nothing to change in this PR itself. |
|
Status: public CI is green (144/144, 0 failures), all review threads resolved, branch is mergeable. The sole remaining red is The infra fix is |
|
a continuation #113330 |
Closes #92482
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
S3 clients with the same endpoint and bucket share a cache, avoiding duplicate region discovery. Closes #92482
Documentation entry for user-facing changes
Version info
26.6.1.743