omartitouhi opened a new pull request, #14864:
URL: https://github.com/apache/gravitino/pull/14864
### What changes were proposed in this pull request?
`FilesetCatalogOperations.getFileSystemWithCache()` no longer puts the
configuration map into the `GravitinoRuntimeException` message when FileSystem
creation fails. The message keeps the path, and the original `IOException`
stays attached as the cause.
### Why are the changes needed?
The configuration map can contain plaintext credentials such as
`s3-secret-access-key`, so any caller that logged the exception also logged
them.
Fixes #14861
### Does this PR introduce _any_ user-facing change?
The error message no longer includes `conf: {...}`. No API or property
changes.
### How was this patch tested?
Added
`TestFilesetCatalogOperations#testGetFileSystemWithCacheFailureDoesNotExposeConf`.
It fails FileSystem creation with dummy `s3-access-key-id` /
`s3-secret-access-key` values and checks that the message contains the path but
neither value, and that the cause is preserved. It fails without the fix and
passes with it.
This was generated with AI assistance (Claude Code) and reviewed by me.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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]