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 18832 #318

Closed
wants to merge 3 commits into from
Closed

Hive 18832 #318

wants to merge 3 commits into from

Conversation

anishek
Copy link
Contributor

@anishek anishek commented Mar 9, 2018

Support change management for trashing data files from ACID tables.

txnHandler.markCompacted(ci);
txnHandler.setRunAs(ci.id, System.getProperty("user.name"));

assertCleanerActions(6);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the number of files 6 in some test and 4 in some? The number of base/delta files added looks same.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thats what existing passing tests create in cleaner and using the same here.

*/
int recycle(Path path, RecycleType type, boolean ifPurge) throws MetaException {
public int recycle(Path path, RecycleType type, boolean ifPurge) throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why try-catch moved to callers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

since acid Cleaner does not support the metaexception its moved to other places from the base method which throws compatible exception for both use cases.

@anishek anishek closed this Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants