-
Notifications
You must be signed in to change notification settings - Fork 935
[#9418] fix(iceberg): inject GCS FileIO token from gcs-service-account-file #12962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
roryqi
merged 12 commits into
apache:main
from
lasdf1234:fix/gcs-service-account-file-fileio
Sep 9, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9fcf914
[#9418] fix(iceberg): inject GCS FileIO token from gcs-service-accoun…
lasdf1234 d0bee57
[#9418] docs: align GCS configuration table columns
lasdf1234 e9d3973
[#9418] refactor(iceberg): drop test-only GCS token loader overload
lasdf1234 b094546
[#9418] fix(iceberg): refresh GCS FileIO token via IRC catalog cache …
lasdf1234 4dbe53d
[#9418] fix(iceberg): refresh GCS tokens via dedicated cache and FileIO
lasdf1234 1d2ca62
[#9418] fix(iceberg): restore IOException import in IcebergCatalogUtil
lasdf1234 9aae30a
[#9418] fix(iceberg): avoid iceberg-gcp compile dep in rest-server
lasdf1234 51a2ea8
[#9418] fix(iceberg): suppress JavaUtilDate in GCS token cache tests
lasdf1234 4873382
Merge branch 'main' into fix/gcs-service-account-file-fileio
lasdf1234 8b93fe0
[#9418] fix(iceberg): refresh GCS tokens via IRC catalog cache expiry
lasdf1234 fdd7610
[#9418] test(core): wait for ClassLoader pool drain after manager close
lasdf1234 15f2d51
[#9418] chore: retrigger CI after BackendIT mysql timeout
lasdf1234 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How to refresh the GCP access token? I will recommend that we add a expire hook for the catalog cache.
You can recreate the catalog before the access token expiration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch — addressed in the latest commit.
IRC catalog wrappers now keep the minted
gcs.oauth2.token-expires-atonIcebergConfig, andIcebergCatalogWrapperManageruses a CaffeineExpirythat caps expire-after-access by token expiry minus a 5-minute buffer. When the entry is evicted, the next request recreates the catalog and remints the token.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow-up: we dropped the catalog-cache expiry approach.
IRC
catalogWrapperCacheis back to plainexpireAfterAccess. Token refresh now lives in a separateGcsAccessTokenCache+GravitinoGCSFileIO, which remints fromgcs-service-account-filewhen the cached token is about to expire — independent of catalog-wrapper eviction.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't. Because you can't handle ResolvingFileIO cases.ResolvingFile will use origin GCSFileIO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got resolved.