YARN-7340. Fix the missing time stamp in exception message in Class
NoOverCommitPolicy. Contributed by Dinesh Chitlangia.
This commit is contained in:
parent
7dd26d5378
commit
6b21a599fb
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user