mirror of https://github.com/apache/druid.git
Slightly improve RTR log messages. (#12540)
1) Align "Assigning task" log messages between RTR and HRTR. 2) Remove confusing reference to "Coordinator". 3) Move "Not assigning task" message from INFO to DEBUG. It's not super important to see this message: we mainly want to see what _does_ get assigned. 4) Reword "Task switched from pending to running" message to better match the structure of the "Assigning task" message from the same method.
This commit is contained in:
parent
485de6a14a
commit
1d258d2108
|
@ -919,10 +919,10 @@ public class RemoteTaskRunner implements WorkerTaskRunner, TaskLogStreamer
|
|||
synchronized (statusLock) {
|
||||
if (!zkWorkers.containsKey(worker) || lazyWorkers.containsKey(worker)) {
|
||||
// the worker might have been killed or marked as lazy
|
||||
log.info("Not assigning task to already removed worker[%s]", worker);
|
||||
log.debug("Not assigning task to already removed worker[%s]", worker);
|
||||
return false;
|
||||
}
|
||||
log.info("Coordinator asking Worker[%s] to add task[%s]", worker, task.getId());
|
||||
log.info("Assigning task [%s] to worker [%s]", task.getId(), worker);
|
||||
|
||||
CuratorUtils.createIfNotExists(
|
||||
cf,
|
||||
|
@ -949,7 +949,7 @@ public class RemoteTaskRunner implements WorkerTaskRunner, TaskLogStreamer
|
|||
|
||||
RemoteTaskRunnerWorkItem newWorkItem = workItem.withWorker(theZkWorker.getWorker(), null);
|
||||
runningTasks.put(task.getId(), newWorkItem);
|
||||
log.info("Task %s switched from pending to running (on [%s])", task.getId(), newWorkItem.getWorker().getHost());
|
||||
log.info("Task [%s] started running on worker [%s]", task.getId(), newWorkItem.getWorker().getHost());
|
||||
TaskRunnerUtils.notifyStatusChanged(listeners, task.getId(), TaskStatus.running(task.getId()));
|
||||
|
||||
// Syncing state with Zookeeper - don't assign new tasks until the task we just assigned is actually running
|
||||
|
|
|
@ -408,7 +408,7 @@ public class HttpRemoteTaskRunner implements WorkerTaskRunner, TaskLogStreamer
|
|||
return false;
|
||||
}
|
||||
|
||||
log.info("Asking Worker[%s] to run task[%s]", workerHost, taskId);
|
||||
log.info("Assigning task [%s] to worker [%s]", taskId, workerHost);
|
||||
|
||||
if (workerHolder.assignTask(workItem.getTask())) {
|
||||
// Don't assign new tasks until the task we just assigned is actually running
|
||||
|
|
Loading…
Reference in New Issue