瀏覽代碼

YARN-7340. Fix the missing time stamp in exception message in Class
NoOverCommitPolicy. Contributed by Dinesh Chitlangia.

Yufei Gu 7 年之前
父節點
當前提交
6b21a599fb

+ 3 - 2
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/reservation/NoOverCommitPolicy.java

@@ -55,8 +55,9 @@ public class NoOverCommitPolicy implements SharingPolicy {
               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);
     }
   }