TezTaskAttemptID allocateTask(String[] hosts, Priority priority) {
      TezTaskAttemptID task = generateTaskAttemptId();
      Object clientCookie = new Object();
      allocateTask(task, hosts, priority, clientCookie);
      return task;
    }
@param timeoutMs
@return false if the time elapsed
@throws InterruptedException
llap-tez/src/test/org/apache/hadoop/hive/llap/tezplugins/TestLlapTaskSchedulerService.java