Skip to content

Conversation

mukul1987
Copy link
Contributor

MiniOzoneCluster is not shutting down all the threads during shutdown. this patch tries to fix that issue.

… during shutdown. Contributed by Mukul Kumar Singh.
@mukul1987 mukul1987 changed the title HDDS-1550. MiniOzoneChaosCluster is not shutting down all the threads during shutdown. Contributed by Mukul Kumar Singh. HDDS-1550. MiniOzoneCluster is not shutting down all the threads during shutdown. Contributed by Mukul Kumar Singh. May 17, 2019
@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 24 Docker mode activated.
_ Prechecks _
+1 dupname 1 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 401 trunk passed
+1 compile 250 trunk passed
+1 checkstyle 58 trunk passed
+1 mvnsite 0 trunk passed
+1 shadedclient 975 branch has no errors when building and testing our client artifacts.
+1 javadoc 134 trunk passed
0 spotbugs 306 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 541 trunk passed
_ Patch Compile Tests _
0 mvndep 31 Maven dependency ordering for patch
+1 mvninstall 453 the patch passed
+1 compile 248 the patch passed
+1 javac 248 the patch passed
+1 checkstyle 60 the patch passed
+1 mvnsite 0 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 783 patch has no errors when building and testing our client artifacts.
+1 javadoc 142 the patch passed
-1 findbugs 10 hadoop-hdds in the patch failed.
_ Other Tests _
-1 unit 266 hadoop-hdds in the patch failed.
-1 unit 3465 hadoop-ozone in the patch failed.
+1 asflicense 33 The patch does not generate ASF License warnings.
8330
Reason Tests
Failed junit tests hadoop.ozone.client.rpc.TestBlockOutputStream
hadoop.ozone.client.rpc.TestSecureOzoneRpcClient
hadoop.ozone.client.rpc.TestContainerStateMachineFailures
hadoop.ozone.client.rpc.TestOzoneRpcClientWithRatis
hadoop.ozone.om.TestOMDbCheckpointServlet
hadoop.ozone.client.rpc.TestCommitWatcher
hadoop.ozone.TestStorageContainerManager
hadoop.ozone.scm.node.TestQueryNode
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-829/1/artifact/out/Dockerfile
GITHUB PR #829
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux c1e713007458 4.4.0-143-generic #169~14.04.2-Ubuntu SMP Wed Feb 13 15:00:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / c183bd8
Default Java 1.8.0_212
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-829/1/artifact/out/patch-findbugs-hadoop-hdds.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-829/1/artifact/out/patch-unit-hadoop-hdds.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-829/1/artifact/out/patch-unit-hadoop-ozone.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-829/1/testReport/
Max. process+thread count 4163 (vs. ulimit of 5500)
modules C: hadoop-hdds/container-service hadoop-hdds/server-scm hadoop-ozone/integration-test U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-829/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.

try {
executorService.awaitTermination(1, TimeUnit.DAYS);
} catch (Exception e) {
LOG.error("failed to shutdown Report Manager", e);
Copy link
Member

Choose a reason for hiding this comment

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

The first letter of the first word as a capital letter maybe better.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you want timeUnit to be Days?

private final OzoneConfiguration configuration;
private final SafeModeHandler safeModeHandler;
private SCMContainerMetrics scmContainerMetrics;
private MetricsSystem ms;
Copy link
Member

Choose a reason for hiding this comment

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

Suggest modify the instance variable name, so that it readability.

conf.setTimeDuration(HddsConfigKeys.HDDS_HEARTBEAT_INTERVAL, 1,
TimeUnit.SECONDS);
conf.setInt(OzoneConfigKeys.OZONE_CONTAINER_CACHE_SIZE, 8);
conf.setInt(OzoneConfigKeys.OZONE_CONTAINER_CACHE_SIZE, 2);
Copy link
Member

Choose a reason for hiding this comment

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

What's the purpose of change the cache size?

if (isStarted) {
server.shutdown();
try {
server.awaitTermination(1, TimeUnit.DAYS);
Copy link
Member

Choose a reason for hiding this comment

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

It's better to read the value from configuration file.

Copy link
Contributor

Choose a reason for hiding this comment

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

Same question as above.

@bshashikant
Copy link
Contributor

bshashikant commented May 17, 2019

Thanks @mukul1987 for working on this. i am +1 on this. The patch looks good to me. Please address @jiwq comments, while committing.

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.

I have few minor comments. Overall patch LGTM.

metrics.unRegister();
}

if (ms != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

in order of precedence, i think closing scmMetadataStore takes more precedence than Metrics. Shall we move this close statement to end.

LOG.info("Shutting the HddsDatanodes");
hddsDatanodes.parallelStream()
.forEach(dn -> {
dn.stop();
Copy link
Contributor

Choose a reason for hiding this comment

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

shall we wrap them in try catch to cleanup all of them silently.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review Ajay, I didnot understand this comment completely. Can you please elaborate. ?

@anuengineer
Copy link
Contributor

I am also +1, but I really agree with @bharatviswa504 , we probably should not wait for a day for the MiniOzoneCluster to shutdown. +1 after fixing that issue.

@mukul1987 mukul1987 closed this Jul 3, 2019
@asfgit asfgit deleted the HDDS-1550 branch August 28, 2019 22:26
shanthoosh pushed a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
…tion processing code

This PR also refactors TestSamzaSqlRemoteTable to be in samza-test instead of samza-sql, since it seems to actually be an integration test. It is useful to move that test in this PR so that tests that may need an external context can be consolidated.

Author: Cameron Lee <[email protected]>

Reviewers: Prateek Maheshwari <[email protected]>, Shanthoosh Venkatraman <[email protected]>

Closes apache#829 from cameronlee314/external_context
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.

7 participants