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
1 changed files with 3 additions and 2 deletions

View File

@ -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);
} }
} }