Gabriel39 opened a new pull request, #71396:
URL: https://github.com/apache/doris/pull/71396

   ### What problem does this PR solve?
   
   Kerberized Iceberg writes using the default `HadoopFileIO` can fail when the 
SDK creates manifests on its shared worker pool. The caller's authentication 
context and `scanManifestsWith` executor do not cover those writes.
   
   Bind write-side Hadoop FileIO operations to the retained catalog 
authenticator, including deferred stream creation. Preserve temporary table 
operations, schema validation, bulk-delete retries, shared manifest caching, 
and catalog-owned FileIO lifetime. Custom non-Hadoop FileIO remains unchanged. 
Keep the default no-op authenticator stateless so cached bindings cannot retain 
a retired REST catalog.
   
   Also pass dynamic overwrite mode explicitly in the existing 
dynamic-overwrite test fixture: its convenience overload otherwise selects 
static overwrite, so that check did not exercise its named behavior.
   
   ### Release note
   
   Fix Iceberg manifest-write authentication failures on Kerberized HDFS when 
using the default Hadoop FileIO.
   
   ### Check List (For Author)
   
   - Test
       - [x] Regression test added for default Hadoop FileIO with alternating 
Kerberos catalogs, append, overwrite, and empty overwrite. The external HMS/BE 
fixture was not available locally, so SQL execution remains for CI.
       - [x] Unit tests added for worker identity, concurrent catalogs, 
retained authentication, rewrite, temporary operations and commit retries, 
deferred file access, native encryption parameters, bulk deletion, error 
propagation, and cache invalidation.
   - Behavior changed:
       - [x] Yes. Write-side Hadoop FileIO uses the catalog's retained 
authentication context on SDK worker threads.
   - Does this need documentation?
       - [x] No.
   
   ### Local validation
   
   - Reproduced the original manifest-worker authentication failure before 
applying the fix; the corrected write path passes the same entry-point test.
   - Full FE Checkstyle and the standard FE preset passed: 277 tests, zero 
failures, errors or skips.
   - Four local review rounds converged with zero unresolved findings.
   - Actual compiled product adapters passed append and ReplacePartitions 
against a secured local Kerberos/HDFS fixture with SDK worker threads prewarmed 
under an unrelated identity; a separate valid user was denied by HDFS ACLs. 
These runs validate metadata manifest commits, not Parquet row reads or HMS/SQL 
execution.
   - Both Groovy suites passed syntax compilation; external HMS/BE SQL 
regression execution is left to CI.
   


-- 
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]

Reply via email to