Skip to content
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

Core: Add table session cache #8920

Merged
merged 1 commit into from
Dec 10, 2023
Merged

Conversation

nastra
Copy link
Contributor

@nastra nastra commented Oct 25, 2023

The purpose of caching auth session for tables is mainly so that we can stop refreshing the session when it isn't used anymore

@github-actions github-actions bot added the core label Oct 25, 2023

return session != null ? session : parent;
}

private String cacheKeyFromConf(Map<String, String> tableConf) {
// this logic needs to be in-line with newSession(credentials, properties, parent)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of this, I think it makes more sense to rely on the same code. What about refactoring to extract a pair, which is the key that was found and the value? Then we can use that pair for caching and pass it into newSession.

The purpose of caching auth session for tables is mainly so that we can
stop refreshing the session when it isn't used anymore
@rdblue rdblue merged commit 4090a88 into apache:main Dec 10, 2023
88 of 90 checks passed
@nastra nastra deleted the table-session-cache branch December 11, 2023 07:35
lisirrx pushed a commit to lisirrx/iceberg that referenced this pull request Jan 4, 2024
The purpose of caching auth session for tables is mainly so that we can
stop refreshing the session when it isn't used anymore
devangjhabakh pushed a commit to cdouglas/iceberg that referenced this pull request Apr 22, 2024
The purpose of caching auth session for tables is mainly so that we can
stop refreshing the session when it isn't used anymore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants