Skip to content

Commit

Permalink
Use task's class name if not a TimedPrioritizeRunnable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dakrone committed Jun 11, 2015
1 parent 1528b86 commit 483a15a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public List<PendingClusterTask> pendingTasks() {
timeInQueue = runnable.timeSinceCreatedInMillis();
} else {
assert false : "expected TimedPrioritizedRunnable got " + task.getClass();
source = "unknown";
source = "unknown [" + task.getClass() + "]";
timeInQueue = 0;
}

Expand Down

0 comments on commit 483a15a

Please sign in to comment.