mirror of https://github.com/apache/druid.git
add new preconditions for taskqueue
This commit is contained in:
parent
93e7ea3787
commit
d5c2fd604f
|
@ -219,6 +219,7 @@ public class TaskQueue
|
|||
|
||||
try {
|
||||
Preconditions.checkState(active, "Queue is not active!");
|
||||
Preconditions.checkNotNull(task, "task");
|
||||
|
||||
// If this throws with any sort of exception, including TaskExistsException, we don't want to
|
||||
// insert the task into our queue.
|
||||
|
|
Loading…
Reference in New Issue