Gabriel39 opened a new pull request, #70980: URL: https://github.com/apache/doris/pull/70980
### Background Iceberg ResolvingFileIO chooses a storage implementation from the URI scheme. Doris supplies GCS HMAC credentials and raw Hadoop options to HadoopFileIO, while the native GCSFileIO uses Google SDK credentials. Adding iceberg-gcp makes the generic resolver select the native implementation for gs:// locations. ### What problem does this PR solve? Issue Number: None Related PR: #70966 (introduced the dependency and compatibility resolver), #70965 (same fix on branch-4.1) PR Type: Bugfix Problem Summary: A non-vending REST catalog that explicitly selects the SDK generic ResolvingFileIO bypasses the HMAC compatibility resolver and starts ignoring its configured HMAC identity. Apply the existing compatibility resolver to that exact generic implementation for Hadoop-backed GCS, through both `io-impl` and `iceberg.rest.io-impl`. Explicit native/custom FileIO, native GCP credential handling and vending keep their existing behavior. ### Details - **Frequency:** Always for HMAC-backed GCS metadata reads when a REST catalog explicitly selects the SDK generic resolver and credential vending is disabled. - **Root cause:** `putIfAbsent` preserves the generic implementation; with iceberg-gcp available it selects GCSFileIO, which does not consume the Hadoop/HMAC settings. - **Why existing tests missed it:** They covered an absent io-impl and explicitly selected native GCSFileIO, without the generic resolver combination. The local HTTP read is now parameterized over the default and both explicit generic option spellings. - **Fix:** Replace only absent or exact SDK generic implementations in the existing Hadoop-backed GCS branch. Leave custom resolver classes and native provider handling alone. - **Other paths and branches:** The same correction is also applied to the other release adaptations. No new scanner class, dependency or FE/BE wire format is introduced; only FE selection and its tests change. ### Testing - Four added assertions fail on the unfixed code: both option spellings lose Hadoop routing and the real local HTTP HMAC signature. Existing non-explicit, native/custom and vending cases remain covered. - 125 selected tests passed on the current branch-4.2 base: 121 related FE tests and 4 scanner tests, including 16 resolver cases, with zero failures/errors/skips. The changed production and test classes were freshly rebuilt; the reviewed/tested source hashes match. - Current-base FE Checkstyle and `git diff --check` pass. Full local self-review completed before committing. ### Release note Preserve GCS HMAC access for Iceberg REST catalogs that explicitly select the SDK generic ResolvingFileIO. ### Check List (For Author) - Behavior changed: Yes, restores Hadoop/HMAC routing for explicit generic resolvers. - Does this need documentation: No, existing property behavior is restored. - Pre-submission status: Partially verified: live GCS/Polaris integration was not run. ### AI Disclosure - Tool: Codex (GPT-6) - Generated: implementation, parameterized tests and this description. - Human review: Not stated by the author; the agent completed a local self-review. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
