Skip to content

Conversation

@hanishakoneru
Copy link
Contributor

No description provided.

@hanishakoneru
Copy link
Contributor Author

Posted initial patch. Will add unit tests soon.

@hadoop-yetus

This comment has been minimized.

Copy link
Contributor

@arp7 arp7 left a comment

Choose a reason for hiding this comment

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

We should add unit tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably use Paths.get to join the path here. Using / breaks Windows. Even though we don't officially support Windows we should make the path logic platform agnostic.

Copy link
Contributor

Choose a reason for hiding this comment

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

What happens during upgrade if two OMs are using different compression schemes? Perhaps we should file a todo to make the compression scheme configurable later.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: Need a space after //.

Also in other places in the same patch.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's log the dir name here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any existing code in Apache commons/HDFS which does this? I am sure there must be. One thing we are potentially missing here is file attributes.

Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't understand this. Could you explain a bit what it does?

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a Javadoc for the class please?

Copy link
Contributor

Choose a reason for hiding this comment

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

Should use getHttpPolicy here.

@hanishakoneru
Copy link
Contributor Author

Thank you @arp7 for the review. Addressed your review comments and added a unit test.

@hadoop-yetus

This comment has been minimized.

@hanishakoneru hanishakoneru force-pushed the HDDS-1371 branch 2 times, most recently from 4d8bf5d to 920852e Compare May 30, 2019 23:37
@hadoop-yetus

This comment has been minimized.

@hanishakoneru
Copy link
Contributor Author

/retest

@hadoop-yetus

This comment has been minimized.

Copy link
Contributor

@bharatviswa504 bharatviswa504 left a comment

Choose a reason for hiding this comment

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

Thank You @hanishakoneru for the contribution.
Overall patch LGTM. I have a few minor comments.

@hanishakoneru
Copy link
Contributor Author

/retest

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 63 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ trunk Compile Tests _
0 mvndep 27 Maven dependency ordering for branch
+1 mvninstall 535 trunk passed
+1 compile 287 trunk passed
+1 checkstyle 81 trunk passed
+1 mvnsite 0 trunk passed
+1 shadedclient 950 branch has no errors when building and testing our client artifacts.
+1 javadoc 176 trunk passed
0 spotbugs 382 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 587 trunk passed
_ Patch Compile Tests _
0 mvndep 30 Maven dependency ordering for patch
+1 mvninstall 473 the patch passed
+1 compile 291 the patch passed
+1 javac 291 the patch passed
-0 checkstyle 46 hadoop-ozone: The patch generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
+1 mvnsite 0 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 xml 2 The patch has no ill-formed XML file.
+1 shadedclient 733 patch has no errors when building and testing our client artifacts.
-1 javadoc 62 hadoop-hdds in the patch failed.
-1 javadoc 101 hadoop-ozone generated 7 new + 8 unchanged - 0 fixed = 15 total (was 8)
-1 findbugs 86 hadoop-ozone in the patch failed.
_ Other Tests _
+1 unit 264 hadoop-hdds in the patch passed.
-1 unit 59 hadoop-ozone in the patch failed.
+1 asflicense 38 The patch does not generate ASF License warnings.
5314
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-703/6/artifact/out/Dockerfile
GITHUB PR #703
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle xml
uname Linux 2f113408fdf3 4.4.0-141-generic #167~14.04.1-Ubuntu SMP Mon Dec 10 13:20:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 0b1e288
Default Java 1.8.0_212
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-703/6/artifact/out/diff-checkstyle-hadoop-ozone.txt
javadoc https://builds.apache.org/job/hadoop-multibranch/job/PR-703/6/artifact/out/patch-javadoc-hadoop-hdds.txt
javadoc https://builds.apache.org/job/hadoop-multibranch/job/PR-703/6/artifact/out/diff-javadoc-javadoc-hadoop-ozone.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-703/6/artifact/out/patch-findbugs-hadoop-ozone.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-703/6/artifact/out/patch-unit-hadoop-ozone.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-703/6/testReport/
Max. process+thread count 403 (vs. ulimit of 5500)
modules C: hadoop-hdds/common hadoop-hdds/framework hadoop-ozone/client hadoop-ozone/common hadoop-ozone/integration-test hadoop-ozone/ozone-manager hadoop-ozone/ozone-recon U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-703/6/console
versions git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@bharatviswa504 bharatviswa504 left a comment

Choose a reason for hiding this comment

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

+1, pending CI. Take care of two minor comments during commit.
As discussed offline using of the new property ozone.http.policy for ozone, can we open a new Jira for that?

@hanishakoneru
Copy link
Contributor Author

/retest

@hadoop-yetus

This comment has been minimized.

@hadoop-yetus

This comment has been minimized.

@hanishakoneru
Copy link
Contributor Author

Fixed related unit test failures.
/retest

@hanishakoneru
Copy link
Contributor Author

/retest

@hadoop-yetus

This comment has been minimized.

@hanishakoneru
Copy link
Contributor Author

/retest

@hadoop-yetus

This comment has been minimized.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 45 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 2 new or modified test files.
_ trunk Compile Tests _
0 mvndep 23 Maven dependency ordering for branch
+1 mvninstall 524 trunk passed
+1 compile 296 trunk passed
+1 checkstyle 80 trunk passed
+1 mvnsite 0 trunk passed
+1 shadedclient 932 branch has no errors when building and testing our client artifacts.
+1 javadoc 179 trunk passed
0 spotbugs 385 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 618 trunk passed
_ Patch Compile Tests _
0 mvndep 32 Maven dependency ordering for patch
+1 mvninstall 482 the patch passed
+1 compile 301 the patch passed
+1 javac 301 the patch passed
+1 checkstyle 79 the patch passed
+1 mvnsite 0 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 xml 1 The patch has no ill-formed XML file.
+1 shadedclient 731 patch has no errors when building and testing our client artifacts.
+1 javadoc 203 the patch passed
+1 findbugs 650 the patch passed
_ Other Tests _
-1 unit 190 hadoop-hdds in the patch failed.
-1 unit 2369 hadoop-ozone in the patch failed.
+1 asflicense 47 The patch does not generate ASF License warnings.
7951
Reason Tests
Failed junit tests hadoop.ozone.container.common.impl.TestHddsDispatcher
hadoop.ozone.client.rpc.TestBCSID
hadoop.hdds.scm.pipeline.TestNode2PipelineMap
hadoop.ozone.client.rpc.TestOzoneRpcClientWithRatis
hadoop.hdds.scm.pipeline.TestRatisPipelineProvider
hadoop.ozone.client.rpc.TestOzoneAtRestEncryption
hadoop.ozone.client.rpc.TestCloseContainerHandlingByClient
hadoop.ozone.client.rpc.TestHybridPipelineOnDatanode
hadoop.ozone.client.rpc.TestOzoneRpcClient
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-703/11/artifact/out/Dockerfile
GITHUB PR #703
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle xml
uname Linux c00839d6af42 4.4.0-141-generic #167~14.04.1-Ubuntu SMP Mon Dec 10 13:20:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / cb9bc6e
Default Java 1.8.0_212
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-703/11/artifact/out/patch-unit-hadoop-hdds.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-703/11/artifact/out/patch-unit-hadoop-ozone.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-703/11/testReport/
Max. process+thread count 5316 (vs. ulimit of 5500)
modules C: hadoop-hdds/common hadoop-ozone/client hadoop-ozone/common hadoop-ozone/integration-test hadoop-ozone/ozone-manager hadoop-ozone/ozone-recon U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-703/11/console
versions git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@bharatviswa504
Copy link
Contributor

Thank You @hanishakoneru for the contribution.
I will commit this.

@bharatviswa504 bharatviswa504 merged commit 0b115b6 into apache:trunk Jun 7, 2019
shanthoosh added a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
Internally at Linkedin we've observed that excluding specific `js` and `css` through rat gradle-plugin causes the ligradle build to not run the unit-tests.

To fix it, this patch removes those files from rat excludes and adds the samza license to the individual files.

Author: Shanthoosh Venkataraman <[email protected]>

Reviewers: Prateek Maheshwari <[email protected]>

Closes apache#703 from shanthoosh/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants