Repository navigation
[Bug]: Preserve region fallback for SQL dynamic S3 - #30533
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-xupeng · review
Commit: 7c6a2c527beef5d3bb21aedcb438bd6b7da7c72c
Assessment: approve
Reviewed the complete two-file delta and its SQL/S3/STS callers. Region fallback preserves explicit-region precedence and credential isolation. No actionable findings.
Model: gpt-6-astra / xhigh
Session: 01a14d34-4e51-79a3-a62d-6c9c16279dc8 · slot 0 · generation 0
Validation:
-
Receipt/log mapping retained in /home/xupeng/.local/state/mo-bot/jobs/6b79a7f5c6927bccf43005b0/attempt-1/validation-index.json. Final integrity checks confirmed the pinned checkout remained clean.
-
Built native prerequisites from 192 matched candidate inputs. Isolation preflight, formatting and whitespace checks passed.
-
12 focused tests and three additional signed-request boundary scenarios passed. Both new regression tests failed against the pre-fix implementation as expected.
-
Package selections reconciled: 465 tests passed and six existing tests skipped. The initial aggregate timeout and interrupted run were not counted as package passes; successful recovery selections closed the remaining coverage.
Limitations:
-
No live SQL/frontend or AWS-cloud run; validation exercised the production SQL file-service factory and SDK signing, plus the existing local MinIO suite.
-
The frozen evidence omits issue #30528's body; its contract was assessed from the PR description. CI status summaries were not treated as log-verified execution.
|
Queued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 58 minutes 41 seconds in the queue, including 51 minutes 3 seconds running CI. Required conditions to merge
|
## What type of PR is this? - [x] BUG - [x] Test and CI ## Which issue(s) this PR fixes: Fixes #32876 ## What this PR does / why we need it: Backports the region fallback from main PR #30533 to `4.2-dev`. A dynamic SQL S3 request without an explicit region resolves `AWS_REGION` first and then `AWS_DEFAULT_REGION`; an explicit region always wins. This reads only region configuration and does not enable ambient credential discovery. The 4.2 stability data preparation run failed to load ten TPCC tables with an S3 HeadObject invalid-region error. The loader omitted a region. A controlled end-to-end reproduction in that environment is still needed before confirming the original incident's complete cause. ## Validation - On the unpatched 4.2-dev base `72c43e9305d8355c940075e414f30eaf2e4112a6`, the two backported tests failed, including the same invalid-region error from a simulated S3 transport. - After the patch, the focused fallback and caller-credential tests passed three runs and three race runs; the SQL file-access test group passed three runs. - Real cloud S3, public SQL end-to-end, the original ten-table stability import, and the complete fileservice suite remain unverified. Some fileservice tests use shared `/tmp` socket paths, so the complete suite was not run on the shared host. Approved-by: XuPeng-SH <[email protected]>
What type of PR is this?
Which issue(s) this PR fixes:
Closes #30528
What this PR does / why we need it:
SQL dynamic S3 providers intentionally avoid discovering credentials from the server environment. That path also stopped inheriting the AWS SDK's environment-based Region fallback, so configurations without an explicit Region failed before reaching S3.
When
s3-optsomits Region, useAWS_REGION, thenAWS_DEFAULT_REGION; an explicitly configured Region still takes precedence. This restores non-secret Region compatibility without re-enabling ambient credential discovery. Regression tests verify the signed request uses the expected Region and caller-supplied credentials.Validation: