-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-9913. DistCp to add -useTrash to move deleted files to Trash #974
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
Conversation
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
@steveloughran @jojochuang Could you please help to review this commit? |
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/CopyCommitter.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/TestDistCpOptions.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/TestDistCpOptions.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/TestOptionsParser.java
Show resolved
Hide resolved
...hadoop-distcp/src/test/java/org/apache/hadoop/tools/contract/AbstractContractDistCpTest.java
Outdated
Show resolved
Hide resolved
...hadoop-distcp/src/test/java/org/apache/hadoop/tools/contract/AbstractContractDistCpTest.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/mapred/TestCopyCommitter.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/mapred/TestCopyCommitter.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCpOptionSwitch.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/DistCpOptions.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/OptionsParser.java
Outdated
Show resolved
Hide resolved
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/CopyCommitter.java
Outdated
Show resolved
Hide resolved
Production code looks good other than a few minor issues; commented more on the tests. Have you run any of the object store tests runs (abfs, s3a, etc.)? Not a blocker but I'd prefer this, as otherwise I'll end up doing it |
Thanks @steveloughran for patient review!! I had ran and passed all mentioned object stores(abfs, azure, s3a,adl, aliyun) unit tests. I will update commits according to you suggestions soon. |
OK, +1 from me |
committed; extracted your email address from the .patch file so that you are credited as the author of the patch. |
Update: JIRA playing up so can't close the issue. But I'm also getting a failure on my test run
I'll look at this a bit more and decide whether we should fix this with rollback vs another iteration of the PR |
OK, cause is that the test setup calls For now: reverted this PR so everything will be working before the US wakes up. I know it's a quick fix but I'd be depending on others to review, etc, etc and the failing test will be around for 24h minimum. @asagjj : Can you submit an updated PR with the delete setup something like: Path trashRootDir = remoteFS.getTrashRoot(null);
remoteFS.delete(trashRootDir, true);
ContractTestUtils.assertPathDoesNotExist(remoteFS, "trash", trashRootDir ) We don't need to worry about the before state or the return value of delete, just that the dir isn't there. |
@steveloughran Sorry about that, I didn't reproduce this failure in my enviroment. And since this pr is closed ,I open a new one to update the commit #1111 |
thx, I'll look at it tomorrow. I'll run the tests first just to make sure all is good. |
…pache#974) * Improve thedocumentation of the samza release process.
No description provided.