-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HADOOP-17122: Preserving Directory Attributes in DistCp with Atomic Copy #2133
Conversation
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, as well as I understand distcp anyway...See my q. about the fs -it picks up the hdfs minicluster, correct?
hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/mapred/TestCopyCommitter.java
Show resolved
Hide resolved
hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/mapred/TestCopyCommitter.java
Outdated
Show resolved
Hide resolved
Looks good from my side. Though there is one checkstyle issue. Please address that. |
@steveloughran Please take a look at this PR. |
I will review this on my friday afternoon PR review session. |
Sure Thanks |
@steveloughran Did you take a look at this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
production code looks good, minor style nits with the test code -fix that and it'll be ready to go in
hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/mapred/TestCopyCommitter.java
Show resolved
Hide resolved
hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/mapred/TestCopyCommitter.java
Show resolved
Hide resolved
hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/mapred/TestCopyCommitter.java
Outdated
Show resolved
Hide resolved
@swamirishi while you are looking at distcp, have a look at #1111 and see what you think about it...its test code is pretty close to yours, the functionality orthoganal |
91f2f87
to
1dc17b5
Compare
@steveloughran The testcase in the aforementioned PR is not testing for Atomic copy. It would not matter for this particular code flow as the missing deletion from target FileSystem would be always happening over the CONF_LABEL_TARGET_WORK_PATH & not over the CONF_LABEL_TARGET_FINAL_PATH. So in this code flow one need not test for Atomic Copy case where Work Path & Final Path would be different |
💔 -1 overall
This message was automatically generated. |
1dc17b5
to
166ec38
Compare
💔 -1 overall
This message was automatically generated. |
hey, no need to rebase unless there's a change in the hadoop source which creates merge problems. Github reviews work better if the PRs are left alone, so that it's possible to tie up discussions with specific commits. Something to bear in mind on your next PR.... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, +1 pending the restoration of the line ending.
Please don't rebase/force push the patch after that change. thanks
@@ -650,4 +653,4 @@ public RecordReader createRecordReader(InputSplit split, | |||
return null; | |||
} | |||
} | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: restore the line ending
@steveloughran I have removed the whitespace from the new line I added. Can we get the code merged? |
💔 -1 overall
This message was automatically generated. |
@steveloughran I have made the required changes. Can the code be merged? |
@steveloughran I have made the required changes to fix checksum issue. It worked on local test-patch. Can the code be merged? |
🎊 +1 overall
This message was automatically generated. |
@steveloughran I have received a +1. There are no issues. Can you merge the code? |
I'm on holiday this week. Don't panic. will look at when I return. I am not reviewing any patches this week |
…opy (#2133) Contributed by Swaminathan Balachandran Change-Id: I86f956dd4ab0b278d923fe7b70037e6b929a8aa1
+1. Patch merged to 3.3+,. If you want it in -3.2 then create a separate PR against branch-3.2 with this patch applied and submit it, just to see what Yetus says. We won't be doing any more actual code reviews, just having it regression test the backport. thanks! |
…opy (apache#2133) Contributed by Swaminathan Balachandran
…opy (apache#2133) Contributed by Swaminathan Balachandran Ref.: ENGESC-7613 (cherry picked from commit 872c290) Change-Id: I39a299a051b285e2f655b2cac6dea6f6c58ec21b
NOTICE
Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute