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

View File

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