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

This commit is contained in:
Akira Ajisaka 2018-12-28 17:43:47 +09:00
parent 15fe1b34dd
commit 128f340f4f
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50

View File

@ -866,9 +866,9 @@ public boolean getMoveOnExpiry() {
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);