pvary commented on a change in pull request #699: HIVE-21908: LlapDaemon node 
status should be reflected in the metrics
URL: https://github.com/apache/hive/pull/699#discussion_r300628638
 
 

 ##########
 File path: 
llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/TaskExecutorService.java
 ##########
 @@ -164,9 +171,9 @@ public TaskExecutorService(int numExecutors, int 
waitQueueSize,
     this.enablePreemption = enablePreemption;
     this.numSlotsAvailable = new AtomicInteger(numExecutors);
     this.metrics = metrics;
-    if (metrics != null) {
-      metrics.setNumExecutorsAvailable(numSlotsAvailable.get());
-    }
+    metrics.setNumExecutorsAvailable(numSlotsAvailable.get());
 
 Review comment:
   Maybe this.metrics....

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to