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 class NoOverCommitPolicy implements SharingPolicy {
|
||||||
reservation.getStartTime(), reservation.getEndTime());
|
reservation.getStartTime(), reservation.getEndTime());
|
||||||
} catch (PlanningException p) {
|
} catch (PlanningException p) {
|
||||||
throw new ResourceOverCommitException(
|
throw new ResourceOverCommitException(
|
||||||
"Resources at time " + " would be overcommitted by "
|
"Resources at time " + reservation.getStartTime()
|
||||||
+ "accepting reservation: " + reservation.getReservationId());
|
+ " would be overcommitted by accepting reservation: "
|
||||||
|
+ reservation.getReservationId(), p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue