-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-15566. Support Opentracing #1846
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
base: HADOOP-15566-OpenTracing
Are you sure you want to change the base?
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
HADOOP-16824 is blocking this PR. |
|
💔 -1 overall
This message was automatically generated. |
hadoop-common-project/hadoop-common/src/main/proto/RpcHeader.proto
Outdated
Show resolved
Hide resolved
hadoop-hdfs-project/hadoop-hdfs-client/src/main/proto/datatransfer.proto
Outdated
Show resolved
Hide resolved
|
💔 -1 overall
This message was automatically generated. |
|
💔 -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.
If this method is no longer needed, let's remove it entirely.
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.
did you forget to log variable byteString?
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.
missing a parameter here?
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.
i need to check if the concept matches but io.opentracing.Tracer offers a addReference() API to represent the casual relationship.
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.
I took a quick glance at this patch. I don't really have context on this, so I don't want to interfere.
I suggested to add javadoc which would describe the new classes and their intended behaviours.
Also, I see the the current TestTracing is empty. Can we try some TDD-approach / add test case to have more insight what is the goal here?
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/tracing/Span.java
Outdated
Show resolved
Hide resolved
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/tracing/TraceScope.java
Outdated
Show resolved
Hide resolved
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.
Could you please add javadoc here?
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.
This is dangerous
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/ObjectInputStream.html
"Warning: Deserialization of untrusted data is inherently dangerous and should be avoided."
We need an alternative.
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.
Moreover, ObjectInputStream doesn't guarantee compatibility between a server and a client if they are on different version. Finally, I bet it is not optimal serialization format. We should find one that's as short as possible.
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.
Good find @jojochuang . I agree we should definitely use a more optimized solution for serialization/deserialization if possible.
Change-Id: Ia6adf57210161aea6dd4111adee460a8cfe87039
…rdparty.protobuf. nice. Change-Id: I104fbf4fa16f38eb0de63c62e5f2b0a3c96e1fad
Change-Id: I80a113075938defd0902753a331f2adc6289a8f5
…ceInfoProto, BaseHeaderProto/ReleaseShortCircuitAccessRequestProto/ShortCircuitShmRequestProto to DataTransferTraceInfoProto. Change-Id: I53223547601f7fc0f450c3c512728324ef67b3e8
Change-Id: I236788b52f0542d1fca5f902131a815bdfa298f7
Change-Id: I3e622e7febd8d385d5c6fff8c8572accb39c0fc9
|
Rebased onto latest trunk (44afe11): Resolved a minor import conflict in NameNode class due to the introduction of |
|
I created a branch "HADOOP-15566-OpenTracing" please raise a PR against that branch in the future. Thanks! |
I've updated this PR's base branch to |
|
💔 -1 overall
This message was automatically generated. |
Replacing HTrace with OpenTracing.
mvn install -Pdist -DskipTests -e -Dmaven.javadoc.skip=true -Denforcer.skip=true -DskipShade