Use task's class name if not a TimedPrioritizeRunnable

This is helpful to track down the origin of pending_tasks that aren't
expected. In tests we catch this with an assert, but in production
asserts may not be enabled so we should at least add the class name.
This commit is contained in:
Lee Hinman 2015-06-11 12:30:01 -06:00
parent 1528b86b29
commit 483a15a12b
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ public class InternalClusterService extends AbstractLifecycleComponent<ClusterSe
timeInQueue = runnable.timeSinceCreatedInMillis();
} else {
assert false : "expected TimedPrioritizedRunnable got " + task.getClass();
source = "unknown";
source = "unknown [" + task.getClass() + "]";
timeInQueue = 0;
}