yadavay-amzn opened a new pull request, #16385: URL: https://github.com/apache/iceberg/pull/16385
Fixes #16299. ## Problem `BaseMetastoreTableOperations.refreshFromMetadataLocation` retries metadata reads and stops retrying when loading fails with `NotFoundException`. Some object-storage read paths (Aliyun OSS and Dell ECS) do not classify permanent missing-object failures as `NotFoundException`, so a stale catalog pointer causes infinite retry loops instead of failing fast. ## Fix - **OSSInputStream**: Catch `OSSException` with error codes `NoSuchKey`/`NoSuchBucket` and wrap as `NotFoundException`. - **EcsSeekableInputStream**: Catch `S3Exception` with HTTP 404 and wrap as `NotFoundException`. This matches the behavior of the S3 and GCS FileIO implementations which already throw `NotFoundException` for missing objects. ## Testing Added tests for both implementations verifying that reading a missing object throws `NotFoundException`. Tests fail without the fix (raw provider exceptions propagate). -- 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]
