YARN-7340. Fix the missing time stamp in exception message in Class

NoOverCommitPolicy. Contributed by Dinesh Chitlangia.
This commit is contained in:
Yufei Gu 2018-05-31 22:28:49 -07:00
parent 7dd26d5378
commit 6b21a599fb

View File

@ -55,8 +55,9 @@ public void validate(Plan plan, ReservationAllocation reservation)
reservation.getStartTime(), reservation.getEndTime());
} catch (PlanningException p) {
throw new ResourceOverCommitException(
"Resources at time " + " would be overcommitted by "
+ "accepting reservation: " + reservation.getReservationId());
"Resources at time " + reservation.getStartTime()
+ " would be overcommitted by accepting reservation: "
+ reservation.getReservationId(), p);
}
}