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

Remove cache expiration in HiveCatalogs cache #1674

Merged
merged 2 commits into from
Oct 28, 2020

Conversation

rdblue
Copy link
Contributor

@rdblue rdblue commented Oct 28, 2020

This removes the time limit that expires cache entries in HiveCatalogs. When a catalog is evicted from the cache it is closed, which closes the client pool used by all of the tables loaded by the catalog. Any table still referenced can no longer be used, which breaks some Spark uses that keep DataFrames around.

@rdblue rdblue linked an issue Oct 28, 2020 that may be closed by this pull request
@rdblue rdblue added this to the Java 0.10.0 Release milestone Oct 28, 2020
Copy link
Contributor

@aokolnychyi aokolnychyi left a comment

Choose a reason for hiding this comment

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

+1

@RussellSpitzer
Copy link
Member

Fix looks good, is there any way to write a test though for this behavior?

@rdblue
Copy link
Contributor Author

rdblue commented Oct 28, 2020

is there any way to write a test though for this behavior?

I don't think so. The check would need to be that the client pool is not closed after 10 minutes without being accessed. We expect that if a pool is closed, the tables can no longer function. And if a pool isn't closed, the tables should work fine. I don't see much to test here.

@RussellSpitzer
Copy link
Member

Fair enough, I was just wondering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HiveClientPool closed by HiveCatalog blocks table operations
3 participants