Skip to content

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