- 
                Notifications
    You must be signed in to change notification settings 
- Fork 9.1k
HADOOP-17424. Replace HTrace with No-Op tracer #2645
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
Conversation
| CI run auto retriggered here: https://ci-hadoop.apache.org/blue/organizations/jenkins/hadoop-multibranch/detail/PR-2645/1/ | 
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
3ba5496    to
    1cbf237      
    Compare
  
            
          
                hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/tracing/TraceScope.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
| The failure of TestDFSOutputStream#testCongestionBackoff is related. The NPE is on DataStreamer.java:702. DFSPacket#getTraceParents should be fixed?  | 
| TestBalancerWithHANameNodes and TestRollingUpgrade passed on my local. | 
| @smengcl I'm +1 to commit this after the test failure and findbugs warnings are fixed since this touches many files. We can address nits and documentation fix in follow-up JIRAs. Tracing does not affect usual code paths if not enabled. 
 | 
| 
 Thanks @iwasakims for reviewing this. Yes they definitely look related. Will fix them. | 
        
          
                hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/tracing/Tracer.java
          
            Show resolved
            Hide resolved
        
      | @smengcl @iwasakims  Thank you for the work here | 
| 
 Hi @Sushmasree-28 , thanks for taking your time to check this PR. The current plan it to ditch the  | 
Change-Id: Ie00973147d99c41027642933364c03dbe8db4d8e
Change-Id: I3c57043354f063a9ef8ce9b149dde1a0500f82e2
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
Change-Id: Iece8222a67796768a7f1f016df3df867bd589ae4
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
| 
 @smengcl , OK, thanks for the update regarding TraceAdminProtocol. | 
| @smengcl We are also trying to replace Htrace with OpenTracing. Just curious to know, apart from replacing HTrace with No-Op tracer are you parallelly working on E2E tracing feature with OpenTracing as well? | 
| 
 Yes as I mentioned #1846 was the POC patch for OpenTracing. Now that OpenTelemetry has replaced OpenTracing, we should be looking at using OpenTelemetry instead. I haven't diven deep into the difference but I'm expecting the latter's APIs to be mostly compatible with its predecessor. | 
| Update:  | 
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
| @smengcl LGTM overall. Could you address the findbugs warning? TestErasureCodingPoliciesWithRandomECPolicy and TestStandbyInProgressTail are not related. | 
Change-Id: I6b391862afe208fa78bf1de53644c889ab447fe1
| 
 Done. Thanks! | 
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
| findbugs passed after the last commit.  | 
| Just realized that when rebasing the patch some unwanted changes (minor license header diff, whitespace) is introduced. Will post a commit to amend that. | 
Change-Id: I0d5884d4e2cb6ee87307b81761c2f7b2d51a8884
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
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.
+1
      
        
              This comment has been minimized.
        
        
      
    
  This comment has been minimized.
| Thanks @steveloughran @iwasakims @Sushmasree-28 for reviewing this patch. And thanks @iwasakims for merging this. | 
(cherry picked from commit 1a205cc) Conflicts: hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DataStreamer.java hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/tracing/TestTracing.java
https://issues.apache.org/jira/browse/HADOOP-17424
Previous PR at #2632. The CI itself seems buggy, was complaining about a file I've already removed from the project. Filing this new PR to see if this solves that problem.