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

HIVE-28770: Fix Downloaded Resources Directory Persisting After HiveServer2 Shutdown #5649

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Indhumathi27
Copy link
Contributor

What changes were proposed in this pull request?

Ensures hive.downloaded.resources.dir is properly cleaned up when HiveServer2 (HS2) shuts down. Adds cleanup logic to CliService.applyAuthorizationConfigPolicy and HiveMaterializedViewsRegistry.

Why are the changes needed?

Unused downloaded resources persist after HS2 shutdown, leading to disk bloat and performance degradation. This fix prevents unnecessary resource accumulation and improves cleanup.

Does this PR introduce any user-facing change?

No functional changes for users; it only enhances internal resource management. Temporary directories will now be cleaned up automatically.

Is the change a dependency upgrade?

No, this PR does not introduce any dependency upgrades.

How was this patch tested?

Manually verified that _resources directories are created and removed correctly.

@Indhumathi27 Indhumathi27 changed the title HIVE-28770: Fix Unused Downloaded Resources Directory Persisting After HiveServer2 Shutdown HIVE-28770: Fix Downloaded Resources Directory Persisting After HiveServer2 Shutdown Feb 21, 2025
@Indhumathi27
Copy link
Contributor Author

@ayushtkn @okumin Can you help to review the PR.. thanks

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

Successfully merging this pull request may close these issues.

2 participants