Doris-Breakwater commented on issue #71147:
URL: https://github.com/apache/doris/issues/71147#issuecomment-7270694699

   Breakwater-GitHub-Analysis-Slot: slot_65c85263da8f
   
   The report is consistent with a Doris 4.1.5 compatibility regression in 
Iceberg Glue metadata scans. The release source explains the reported 
exception. The running BE package and an end-to-end Glue/S3 reproduction still 
need verification.
   
   - **What changed in 4.1.5.** Doris moved from Iceberg 1.10.1 in 4.1.4.1 to 
1.11.0 in 4.1.5. Doris sets Iceberg's `client.credentials-provider` to 
`ConfigurationAWSCredentialsProvider2x` whenever both static Glue keys are set. 
Iceberg 1.11.0 resolves that provider before considering the explicit S3 keys. 
Iceberg 1.10.1 considered the explicit S3 keys first. Matching Glue and S3 keys 
therefore still trigger a reflective class lookup in 4.1.5. [Doris 4.1.4.1 
dependency](https://github.com/apache/doris/blob/4.1.4.1/fe/pom.xml#L336), 
[Doris 4.1.5 
dependency](https://github.com/apache/doris/blob/4.1.5-release/fe/pom.xml#L350),
 [Glue property 
mapping](https://github.com/apache/doris/blob/4.1.5-release/fe/fe-core/src/main/java/org/apache/doris/datasource/property/metastore/IcebergGlueMetaStoreProperties.java#L75-L97),
 [Iceberg precedence change](https://github.com/apache/iceberg/pull/15249).
   - **Why `DESC` can succeed.** The provider lives in `fe-core`, where FE can 
use it during schema lookup. For `$files`, FE serializes the Iceberg scan task 
with its FileIO. BE deserializes it and opens the manifest under the JNI 
scanner's classloader. The release scanner declares Iceberg AWS dependencies 
and has no dependency on the module that contains the Doris provider. This 
accounts for the reported class lookup failure when BE initializes the manifest 
reader. Ordinary base-table scans use a different split/reader path, so their 
outcome needs a separate check. [FE scan 
routing](https://github.com/apache/doris/blob/4.1.5-release/fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/source/IcebergScanNode.java#L397-L418),
 [Iceberg manifest 
task](https://github.com/apache/iceberg/blob/apache-iceberg-1.11.0/core/src/main/java/org/apache/iceberg/BaseFilesTable.java#L129-L167),
 [BE 
scanner](https://github.com/apache/doris/blob/4.1.5-release/fe/be-java-extensions/iceberg-metada
 
ta-scanner/src/main/java/org/apache/doris/iceberg/IcebergSysTableJniScanner.java#L57-L96),
 [scanner 
dependencies](https://github.com/apache/doris/blob/4.1.5-release/fe/be-java-extensions/iceberg-metadata-scanner/pom.xml#L37-L66).
   
   Could you share the exact FE and failing BE build IDs or image digests, the 
query ID and redacted BE JNI stack trace, and the jar names under 
`be/lib/java_extensions/iceberg-metadata-scanner/`? Please include the result 
of a plain `SELECT <data_column> FROM <table> LIMIT 1` on the same table and 
redact credentials and storage identifiers.
   
   For maintainers, reproduce on a stock 4.1.5 build with `v2` and a table with 
at least one manifest. If available, compare with 4.1.4.1 using the same 
catalog configuration. Scope the Glue provider to the Glue client and preserve 
the explicit S3 credentials in the FileIO that reaches BE. Verify a `$files` 
scan with separate Glue and S3 principals as well as matching keys, since 
shipping the class alone would still let the Glue credentials take precedence 
for S3. Changing `aws_credentials_provider_version` to `v1` is unverified as a 
workaround. The static Glue mapping names the SDK v2 class independently of 
that setting. [Static Glue 
mapping](https://github.com/apache/doris/blob/4.1.5-release/fe/fe-core/src/main/java/org/apache/doris/datasource/property/metastore/IcebergGlueMetaStoreProperties.java#L83-L97).
   


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