hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aajis...@apache.org
Subject hadoop git commit: YARN-8894. Improve InMemoryPlan#toString. Contributed by BELUGA BEHR.
Date Fri, 28 Dec 2018 08:44:04 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 15fe1b34d -> 128f340f4


YARN-8894. Improve InMemoryPlan#toString. Contributed by BELUGA BEHR.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/128f340f
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/128f340f
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/128f340f

Branch: refs/heads/trunk
Commit: 128f340f4fd363e7c7de338f5535088131bf2969
Parents: 15fe1b3
Author: Akira Ajisaka <aajisaka@apache.org>
Authored: Fri Dec 28 17:43:47 2018 +0900
Committer: Akira Ajisaka <aajisaka@apache.org>
Committed: Fri Dec 28 17:43:47 2018 +0900

----------------------------------------------------------------------
 .../yarn/server/resourcemanager/reservation/InMemoryPlan.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/128f340f/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/reservation/InMemoryPlan.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/reservation/InMemoryPlan.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/reservation/InMemoryPlan.java
index 49e07aa..43be2a5 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/reservation/InMemoryPlan.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/reservation/InMemoryPlan.java
@@ -866,9 +866,9 @@ public class InMemoryPlan implements Plan {
   public String toString() {
     readLock.lock();
     try {
-      StringBuffer planStr = new StringBuffer("In-memory Plan: ");
+      StringBuilder planStr = new StringBuilder("In-memory Plan: ");
       planStr.append("Parent Queue: ").append(queueName)
-          .append("Total Capacity: ").append(totalCapacity).append("Step: ")
+          .append(" Total Capacity: ").append(totalCapacity).append(" Step: ")
           .append(step);
       for (ReservationAllocation reservation : getAllReservations()) {
         planStr.append(reservation);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message