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

    https://github.com/apache/tajo/pull/911#discussion_r47595720
  
    --- Diff: tajo-core/src/main/java/org/apache/tajo/worker/TajoWorker.java ---
    @@ -242,27 +210,10 @@ private void initWorkerMetrics() {
         workerSystemMetrics = new TajoSystemMetrics(systemConf, Node.class, 
workerContext.getWorkerName());
         workerSystemMetrics.start();
     
    -    workerSystemMetrics.register(Node.QueryMaster.RUNNING_QM, new 
Gauge<Integer>() {
    -      @Override
    -      public Integer getValue() {
    -        if(queryMasterManagerService != null) {
    -          return 
queryMasterManagerService.getQueryMaster().getQueryMasterTasks().size();
    -        } else {
    -          return 0;
    -        }
    -      }
    -    });
    -
    -    workerSystemMetrics.register(Node.Tasks.RUNNING_TASKS, new 
Gauge<Integer>() {
    -      @Override
    -      public Integer getValue() {
    -        if(taskExecutor != null) {
    -          return taskExecutor.getRunningTasks();
    -        } else {
    -          return 0;
    -        }
    -      }
    -    });
    +    workerSystemMetrics.register(Node.QueryMaster.RUNNING_QM, () ->
    +        queryMasterManagerService != null ? 
queryMasterManagerService.getQueryMaster().getQueryMasterTasks().size() : 0);
    --- End diff --
    
    This line is over 120 char
    https://cwiki.apache.org/confluence/display/TAJO/Code+Style


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to