Skip to content

HDDS-1214. Enable tracing for the datanode read/write path - #550

Closed
elek wants to merge 1 commit into
apache:trunkfrom
elek:HDDS-1214
Closed

HDDS-1214. Enable tracing for the datanode read/write path#550
elek wants to merge 1 commit into
apache:trunkfrom
elek:HDDS-1214

Conversation

@elek

@elekelek commented Mar 4, 2019

Copy link
Copy Markdown
Member

HDDS-1150 introduced distributed for ozone components. But we have no trace context propagation between the clients and Ozone Datanodes.

As we use Grpc and Ratis on this RPC path the full tracing could be quite complex: we should propagate the trace id in Ratis and include it in all the log entries.

I propose a simplified solution here: to trace only the StateMachine operations.

As Ratis is a library we provide the implementation of the appropriate Raft elements especially the StateMachine and the raft messages. We can add the tracing information to the raft messages (in fact, we already have this field) and we can restore the tracing context during the StateMachine operations.

This approach is very simple (only a few lines of codes) and can show the time of the real write/read operations, but can't see the internals of the Ratis operations.

See: https://issues.apache.org/jira/browse/HDDS-1214

@elekelek added the ozone label Mar 4, 2019
@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec25Docker mode activated.
_ Prechecks _
+1@author0The patch does not contain any @author tags.
-1test4tests0The 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 _
0mvndep25Maven dependency ordering for branch
+1mvninstall988trunk passed
+1compile71trunk passed
+1checkstyle26trunk passed
+1mvnsite72trunk passed
+1shadedclient672branch has no errors when building and testing our client artifacts.
+1findbugs115trunk passed
+1javadoc61trunk passed
_ Patch Compile Tests _
0mvndep11Maven dependency ordering for patch
-1mvninstall25container-service in the patch failed.
-1compile47hadoop-hdds in the patch failed.
-1javac47hadoop-hdds in the patch failed.
-0checkstyle18hadoop-hdds: The patch generated 19 new + 0 unchanged - 0 fixed = 19 total (was 0)
-1mvnsite23container-service in the patch failed.
+1whitespace0The patch has no whitespace issues.
+1shadedclient703patch has no errors when building and testing our client artifacts.
-1findbugs20container-service in the patch failed.
+1javadoc55the patch passed
_ Other Tests _
-1unit69common in the patch failed.
-1unit23container-service in the patch failed.
+1asflicense23The patch does not generate ASF License warnings.
3255
ReasonTests
Failed junit testshadoop.hdds.security.x509.certificate.client.TestDefaultCertificateClient
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-550/1/artifact/out/Dockerfile
GITHUB PR#550
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux 39b95bcd86a1 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / 15098df
mavenversion: Apache Maven 3.3.9
Default Java1.8.0_191
findbugsv3.1.0-RC1
mvninstallhttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/1/artifact/out/patch-mvninstall-hadoop-hdds_container-service.txt
compilehttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/1/artifact/out/patch-compile-hadoop-hdds.txt
javachttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/1/artifact/out/patch-compile-hadoop-hdds.txt
checkstylehttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/1/artifact/out/diff-checkstyle-hadoop-hdds.txt
mvnsitehttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/1/artifact/out/patch-mvnsite-hadoop-hdds_container-service.txt
findbugshttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/1/artifact/out/patch-findbugs-hadoop-hdds_container-service.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/1/artifact/out/patch-unit-hadoop-hdds_common.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/1/artifact/out/patch-unit-hadoop-hdds_container-service.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/1/testReport/
Max. process+thread count446 (vs. ulimit of 5500)
modulesC: hadoop-hdds/common hadoop-hdds/container-service U: hadoop-hdds
Console outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/1/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec43Docker mode activated.
_ Prechecks _
+1@author0The patch does not contain any @author tags.
-1test4tests0The 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 _
0mvndep14Maven dependency ordering for branch
+1mvninstall1074trunk passed
+1compile74trunk passed
+1checkstyle29trunk passed
+1mvnsite70trunk passed
+1shadedclient795branch has no errors when building and testing our client artifacts.
+1findbugs126trunk passed
+1javadoc69trunk passed
_ Patch Compile Tests _
0mvndep15Maven dependency ordering for patch
+1mvninstall77the patch passed
+1compile74the patch passed
+1javac74the patch passed
+1checkstyle23the patch passed
+1mvnsite67the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedclient758patch has no errors when building and testing our client artifacts.
+1findbugs134the patch passed
+1javadoc64the patch passed
_ Other Tests _
-1unit82common in the patch failed.
+1unit66container-service in the patch passed.
+1asflicense32The patch does not generate ASF License warnings.
3721
ReasonTests
Failed junit testshadoop.hdds.security.x509.certificate.client.TestDefaultCertificateClient
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-550/2/artifact/out/Dockerfile
GITHUB PR#550
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux fc16b419e907 3.13.0-153-generic #203-Ubuntu SMP Thu Jun 14 08:52:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / 0aefe28
mavenversion: Apache Maven 3.3.9
Default Java1.8.0_191
findbugsv3.1.0-RC1
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/2/artifact/out/patch-unit-hadoop-hdds_common.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/2/testReport/
Max. process+thread count327 (vs. ulimit of 5500)
modulesC: hadoop-hdds/common hadoop-hdds/container-service U: hadoop-hdds
Console outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/2/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

arp7
arp7 approved these changes Mar 7, 2019

@arp7arp7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

@elek

elek commented Mar 11, 2019

Copy link
Copy Markdown
MemberAuthor

Thanks @arp7 the review. I rebased the patch, will commit it after a clean jenkins run...

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec44Docker mode activated.
_ Prechecks _
+1@author0The patch does not contain any @author tags.
-1test4tests0The 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 _
0mvndep48Maven dependency ordering for branch
+1mvninstall1177trunk passed
+1compile79trunk passed
+1checkstyle31trunk passed
+1mvnsite78trunk passed
+1shadedclient823branch has no errors when building and testing our client artifacts.
+1findbugs126trunk passed
+1javadoc72trunk passed
_ Patch Compile Tests _
0mvndep12Maven dependency ordering for patch
+1mvninstall78the patch passed
+1compile72the patch passed
+1javac72the patch passed
+1checkstyle26the patch passed
+1mvnsite69the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedclient799patch has no errors when building and testing our client artifacts.
+1findbugs136the patch passed
+1javadoc66the patch passed
_ Other Tests _
-1unit88common in the patch failed.
-1unit62container-service in the patch failed.
+1asflicense36The patch does not generate ASF License warnings.
3952
ReasonTests
Failed junit testshadoop.hdds.security.x509.certificate.client.TestDefaultCertificateClient
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-550/3/artifact/out/Dockerfile
GITHUB PR#550
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux 1c6b6adced10 3.13.0-153-generic #203-Ubuntu SMP Thu Jun 14 08:52:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / ebb5fa1
mavenversion: Apache Maven 3.3.9
Default Java1.8.0_191
findbugsv3.1.0-RC1
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/3/artifact/out/patch-unit-hadoop-hdds_common.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/3/artifact/out/patch-unit-hadoop-hdds_container-service.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/3/testReport/
Max. process+thread count319 (vs. ulimit of 5500)
modulesC: hadoop-hdds/common hadoop-hdds/container-service U: hadoop-hdds
Console outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-550/3/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@elekelek closed this in d17e31eMar 12, 2019
shanthoosh pushed a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
…constructor.
vjagadish1989 this has already been reviewed and approved by you and cameronlee314 internally. Please approve here. Thanks!
Author: Daniel Nishimura <dnishimura@linkedin.com>
Reviewers: Jagadish <jagadish@apache.org>
Closesapache#550 from dnishimura/samza-1742-localapplicationrunner-custom-metrics
Sign up for freeto 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.

3 participants

@elek@hadoop-yetus@arp7