Repository navigation
[4.2-dev] fix: preserve SQL S3 environment region fallback - #32877
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? |
|
Queue requested — the merge queue status continues in this comment ↓. |
|
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-local · review
Commit: 272ba5c12fb309f26a219383af1a9ba0eb419438
Assessment: approve
The backport restores region fallback in the existing caller-only AWS configuration. An explicit region takes precedence. If the region is still unset after bucket discovery, the client checks AWS_REGION and then AWS_DEFAULT_REGION. The fallback preserves caller credential isolation.
Model: gpt-6.2-sol / xhigh
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Isolation preflight, frozen source verification, git diff --check, and native artifact checks passed. Receipts 1794974291759524688-3.json and 1794974359374724254-2.json.
-
Both new tests failed with the merge-base implementation, reproducing the empty-region HeadObject error. Both passed on the candidate alongside credential isolation, role refresh, cancellation, and admission controls. Receipts 1794974601801657339-2.json and 1794974557398608313-2.json.
-
Public SQL LOAD DATA against a loopback S3 fixture passed all three region cases and verified caller-signed HEAD and GET requests. Missing credentials were rejected before a request, and a denied import left the existing rows intact. Receipt 1794974701960817023-2.json and sql-s3-probe.jsonl.
-
The frozen CI snapshot shows the latest required result succeeded, along with build, unit, coverage, PROXY, and PESSIMISTIC checks.
Limitations:
-
The full local fileservice suite exceeded its time budget during a local disk-cache fsync. Receipt 1794974718967129293-2.json and fileservice-package.jsonl.
-
Real-cloud S3 and the original ten-table stability import remain unverified. The upstream main PR diff was outside the frozen evidence.
✅ Merged into
|
What type of PR is this?
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 resolvesAWS_REGIONfirst and thenAWS_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
72c43e9305d8355c940075e414f30eaf2e4112a6, the two backported tests failed, including the same invalid-region error from a simulated S3 transport./tmpsocket paths, so the complete suite was not run on the shared host.