jasonk000 commented on a change in pull request #12097:
URL: https://github.com/apache/druid/pull/12097#discussion_r774835850



##########
File path: 
indexing-service/src/main/java/org/apache/druid/indexing/overlord/RemoteTaskRunner.java
##########
@@ -553,11 +553,33 @@ public boolean isWorkerRunningTask(ZkWorker worker, 
String taskId)
    * Finds the worker running the task and forwards the shutdown signal to the 
worker.
    *
    * @param taskId - task id to shutdown
+   * @param reasonFormat - a StringUtils reason string for shutdown
+   * @param reasonArgs - args will be used during constructio of reason log 
line
+   */
+  @Override
+  public void shutdown(final String taskId, String reasonFormat, Object... 
reasonArgs)
+  {
+    if (log.isInfoEnabled()) {

Review comment:
       Checking explicitly avoids the extra `+` string concatenation in the 
case that info() is not enabled. This is minor, but while we are here...




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to