z1bbo opened a new issue, #12232:
URL: https://github.com/apache/iceberg/issues/12232

   ### Apache Iceberg version
   
   1.7.1 (latest release)
   
   ### Query engine
   
   None
   
   ### Please describe the bug 🐞
   
   Path concatenation in HadoopCatalog at e.g. [this 
line](https://github.com/apache/iceberg/blob/31e9dc768cef47df5eb007577f25ef3bbff86f61/core/src/main/java/org/apache/iceberg/hadoop/HadoopCatalog.java#L194)
 is buggy for root level path URI resolving for some JVMs. 
   
   e.g. Calling `sparkSession.catalog().listTables("namespace");` with 
warehouse path `s3a://test-bucket` will wrongly concatenate to 
`s3a://test-bucketnamespace` (missing the slash) and throw!
   
   the bug seems to only occur for some JVMs,  I've tested a few,
   
   *confirmed broken (bug occurs)*:
   
   * 11.0.19-zulu
   * 11.0.26-zulu
   * 17.0.12-oracle
   
   *confirmed OK (bug doesn't occur)*:
   
   * 17.0.12-zulu
   * 21.0.6-oracle
   
   I've tried to create an MRE here to quickly reproduce the issue: 
https://github.com/z1bbo/iceberg-hadoop-root-failure
   
   I'll link a PR in a few moments that should solve the issue, I'm not sure 
how to properly test it though, since all the other tests rely on `/tmp` type 
folder structures where the bug by definition won't occur.
   
   
   ### Willingness to contribute
   
   - [x] I can contribute a fix for this bug independently
   - [x] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


-- 
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: issues-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to