Skip to content

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
}

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
@nastra nastra force-pushed the table-session-cache branch from b210c68 to d955e23 Compare October 30, 2023 09:22
@nastra nastra closed this Oct 30, 2023
@nastra nastra reopened this Oct 30, 2023
@nastra nastra requested a review from rdblue October 31, 2023 16:21
@rdblue rdblue merged commit 4090a88 into apache:main Dec 10, 2023
@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
zhongyujiang pushed a commit to zhongyujiang/iceberg that referenced this pull request Apr 16, 2025
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