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-24135: Delete DB managed directory on drop db (Naveen Gangam) #2354

Closed
wants to merge 1 commit into from

Conversation

nrg4878
Copy link
Contributor

@nrg4878 nrg4878 commented Jun 6, 2021

What changes were proposed in this pull request?

The database's managed location is not deleted when the database is dropped. This fix addresses the issue.

Why are the changes needed?

Even though db.getManagedLocation() might be null, there is always a default managed location for the database. On a drop database, we check to see if this location is null and only drop it if not null. But regardless of whether or not it is null, there is always an assigned location that needs to be dropped.

Does this PR introduce any user-facing change?

NO

How was this patch tested?

Unit test + manually

Copy link
Contributor

@yongzhi yongzhi left a comment

Choose a reason for hiding this comment

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

The change is fine

@nrg4878
Copy link
Contributor Author

nrg4878 commented Jun 8, 2021

Thanks for the review. Fix has been committed.

@nrg4878 nrg4878 closed this Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants