Github user mareksimunek commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22485#discussion_r219789235
  
    --- Diff: 
common/network-yarn/src/main/java/org/apache/spark/network/yarn/YarnShuffleService.java
 ---
    @@ -168,6 +170,15 @@ protected void serviceInit(Configuration conf) throws 
Exception {
           TransportConf transportConf = new TransportConf("shuffle", new 
HadoopConfigProvider(conf));
           blockHandler = new ExternalShuffleBlockHandler(transportConf, 
registeredExecutorFile);
     
    +      // register metrics on the block handler into the Node Manager's 
metrics system.
    +      YarnShuffleServiceMetrics serviceMetrics =
    +              new YarnShuffleServiceMetrics(blockHandler.getAllMetrics());
    +
    +      MetricsSystemImpl metricsSystem = (MetricsSystemImpl) 
DefaultMetricsSystem.instance();
    +      metricsSystem.register(
    --- End diff --
    
    `register` method only did some fancy stuff on metrics name, so I didnt 
understand the motivation to use `registerSource`. Also I think Ash only 
follows notifications on JIRA ticket so I notified him there.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to