Skip to content

HDDS-1757. Use ExecutorService in OzoneManagerStateMachine. #1048

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

Merged
merged 2 commits into from
Jul 2, 2019

Conversation

bharatviswa504
Copy link
Contributor

No description provided.

Copy link
Contributor

@anuengineer anuengineer left a comment

Choose a reason for hiding this comment

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

I am +1; on this change. But I am wondering if we should add some shutdown handling ..
https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ExecutorService.html
if I remember correctly, in the Hadoop Executor services helper classes we have shutdown function.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 75 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 doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1 mvninstall 489 trunk passed
+1 compile 263 trunk passed
+1 checkstyle 69 trunk passed
+1 mvnsite 0 trunk passed
+1 shadedclient 954 branch has no errors when building and testing our client artifacts.
+1 javadoc 168 trunk passed
0 spotbugs 355 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 581 trunk passed
_ Patch Compile Tests _
+1 mvninstall 472 the patch passed
+1 compile 274 the patch passed
+1 javac 274 the patch passed
+1 checkstyle 80 the patch passed
+1 mvnsite 0 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 746 patch has no errors when building and testing our client artifacts.
+1 javadoc 167 the patch passed
+1 findbugs 584 the patch passed
_ Other Tests _
+1 unit 320 hadoop-hdds in the patch passed.
-1 unit 1472 hadoop-ozone in the patch failed.
+1 asflicense 47 The patch does not generate ASF License warnings.
6929
Reason Tests
Failed junit tests hadoop.ozone.client.rpc.TestOzoneRpcClientWithRatis
hadoop.ozone.client.rpc.TestBCSID
hadoop.ozone.container.common.statemachine.commandhandler.TestCloseContainerByPipeline
hadoop.ozone.client.rpc.TestCommitWatcher
hadoop.ozone.client.rpc.TestSecureOzoneRpcClient
hadoop.ozone.client.rpc.TestOzoneRpcClient
hadoop.ozone.client.rpc.TestOzoneAtRestEncryption
hadoop.ozone.client.rpc.TestOzoneClientRetriesOnException
Subsystem Report/Notes
Docker Client=18.09.5 Server=18.09.5 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1048/1/artifact/out/Dockerfile
GITHUB PR #1048
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 0a50f47d0fd3 4.15.0-52-generic #56-Ubuntu SMP Tue Jun 4 22:49:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 564758a
Default Java 1.8.0_212
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1048/1/artifact/out/patch-unit-hadoop-ozone.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1048/1/testReport/
Max. process+thread count 5284 (vs. ulimit of 5500)
modules C: hadoop-ozone/ozone-manager U: hadoop-ozone/ozone-manager
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1048/1/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.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 68 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 doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1 mvninstall 468 trunk passed
+1 compile 231 trunk passed
+1 checkstyle 70 trunk passed
+1 mvnsite 0 trunk passed
+1 shadedclient 880 branch has no errors when building and testing our client artifacts.
+1 javadoc 157 trunk passed
0 spotbugs 305 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 494 trunk passed
_ Patch Compile Tests _
+1 mvninstall 430 the patch passed
+1 compile 253 the patch passed
+1 javac 253 the patch passed
+1 checkstyle 74 the patch passed
+1 mvnsite 0 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 730 patch has no errors when building and testing our client artifacts.
+1 javadoc 179 the patch passed
+1 findbugs 605 the patch passed
_ Other Tests _
+1 unit 335 hadoop-hdds in the patch passed.
-1 unit 2108 hadoop-ozone in the patch failed.
+1 asflicense 52 The patch does not generate ASF License warnings.
7316
Reason Tests
Failed junit tests hadoop.ozone.TestMiniOzoneCluster
hadoop.ozone.client.rpc.TestOzoneRpcClient
hadoop.ozone.client.rpc.TestOzoneRpcClientWithRatis
hadoop.ozone.client.rpc.TestOzoneClientRetriesOnException
hadoop.ozone.om.TestOzoneManager
hadoop.ozone.client.rpc.TestContainerStateMachine
hadoop.ozone.client.rpc.TestCommitWatcher
Subsystem Report/Notes
Docker Client=18.09.5 Server=18.09.5 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1048/2/artifact/out/Dockerfile
GITHUB PR #1048
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 7ca884e2b65d 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 564758a
Default Java 1.8.0_212
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1048/2/artifact/out/patch-unit-hadoop-ozone.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1048/2/testReport/
Max. process+thread count 3769 (vs. ulimit of 5500)
modules C: hadoop-ozone/ozone-manager U: hadoop-ozone/ozone-manager
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1048/2/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 Author

Thank You @anuengineer for the review.
As suggested, used HadoopExecutor API, and also invoked shutdown during the stop.

@anuengineer
Copy link
Contributor

Please feel free to commit when all checks are complete. Thanks for the patch. Appreciate it.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 67 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 doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1 mvninstall 455 trunk passed
+1 compile 246 trunk passed
+1 checkstyle 60 trunk passed
+1 mvnsite 0 trunk passed
+1 shadedclient 790 branch has no errors when building and testing our client artifacts.
+1 javadoc 159 trunk passed
0 spotbugs 318 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 506 trunk passed
_ Patch Compile Tests _
+1 mvninstall 428 the patch passed
+1 compile 249 the patch passed
+1 javac 249 the patch passed
+1 checkstyle 80 the patch passed
+1 mvnsite 1 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 646 patch has no errors when building and testing our client artifacts.
+1 javadoc 161 the patch passed
+1 findbugs 521 the patch passed
_ Other Tests _
+1 unit 241 hadoop-hdds in the patch passed.
-1 unit 1183 hadoop-ozone in the patch failed.
+1 asflicense 49 The patch does not generate ASF License warnings.
6061
Reason Tests
Failed junit tests hadoop.ozone.client.rpc.TestOzoneRpcClient
hadoop.ozone.client.rpc.TestOzoneAtRestEncryption
hadoop.ozone.client.rpc.TestSecureOzoneRpcClient
hadoop.ozone.client.rpc.TestOzoneRpcClientWithRatis
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1048/3/artifact/out/Dockerfile
GITHUB PR #1048
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 8a5976ede4f7 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 75b1e45
Default Java 1.8.0_212
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1048/3/artifact/out/patch-unit-hadoop-ozone.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1048/3/testReport/
Max. process+thread count 5018 (vs. ulimit of 5500)
modules C: hadoop-ozone/ozone-manager U: hadoop-ozone/ozone-manager
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1048/3/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.

@anuengineer anuengineer merged commit 91cc197 into apache:trunk Jul 2, 2019
bshashikant pushed a commit to bshashikant/hadoop that referenced this pull request Jul 10, 2019
shanthoosh pushed a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
…e refactor (apache#1048)

* SAMZA-2215 : StartpointManager fix for previous CoordinatorStreamStore refactor

* Optimize imports on ContainerLaunchUtil
amahussein pushed a commit to amahussein/hadoop that referenced this pull request Oct 29, 2019
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