Skip to content

HADOOP-16255. Add ChecksumFs.rename(path, path, boolean) to rename crc file as well when FileContext.rename(path, path, options) is called. [BRANCH-2] #1413

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

Closed

Conversation

HeartSaVioR
Copy link
Contributor

Please refer https://issues.apache.org/jira/browse/HADOOP-16255 for more details.

FYI, FileContext.rename(path, path, options) leaks crc file for source of rename when CheckFs or its descendant is used as underlying filesystem. https://issues.apache.org/jira/browse/SPARK-28025 took a workaround via removing crc file manually, and we hope to get rid of workaround eventually.

This PR is ported version of #1388 for branch-2.

@HeartSaVioR
Copy link
Contributor Author

cc. @steveloughran

HadoopTestBase doesn't seem to be available in branch-2 so I removed it. Except that it was clean cherry-pick. Let's see the build result.

/**
* This class tests the functionality of ChecksumFs.
*/
public class TestChecksumFs {
Copy link
Contributor

Choose a reason for hiding this comment

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

copy in the TestTimeout rule from the HadoopTestBase class; we need all new tests to timeout before mvn gets bored and kills the process.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah OK. I thought it would be fine as HadoopTestBase doesn't exist. I'll copy the rule here.

@steveloughran
Copy link
Contributor

Don't see yetus picking this up; it seems to like trunk the best. Can you attach it as a .patch to the JIRA with a name like HADOOP-16255-branch-2-001.patch; yetus should know to run it against branch-2

@HeartSaVioR HeartSaVioR changed the title [BRANCH-2] HADOOP-16255. Add ChecksumFs.rename(path, path, boolean) to rename crc file as well when FileContext.rename(path, path, options) is called. HADOOP-16255. Add ChecksumFs.rename(path, path, boolean) to rename crc file as well when FileContext.rename(path, path, options) is called. [BRANCH-2] Sep 11, 2019
@HeartSaVioR
Copy link
Contributor Author

I just subscribed the common-dev@ and recently there is a discussion regarding build - looks like it recognizes JIRA number, so maybe it requires JIRA number to be prefixed (though not sure Yetus recognizes branch). Let me just try to modify title and wait for a hour: if Yetus didn't run I'll add a patch file to JIRA issue.

@HeartSaVioR HeartSaVioR reopened this Sep 11, 2019
@HeartSaVioR
Copy link
Contributor Author

I just attached the patch file to JIRA issue - looks like Yetus doesn't work for this case. Closing.

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.

2 participants