YARN-8894. Improve InMemoryPlan#toString. Contributed by BELUGA BEHR.
This commit is contained in:
parent
15fe1b34dd
commit
128f340f4f
@ -866,9 +866,9 @@ public boolean getMoveOnExpiry() {
|
|||||||
public String toString() {
|
public String toString() {
|
||||||
readLock.lock();
|
readLock.lock();
|
||||||
try {
|
try {
|
||||||
StringBuffer planStr = new StringBuffer("In-memory Plan: ");
|
StringBuilder planStr = new StringBuilder("In-memory Plan: ");
|
||||||
planStr.append("Parent Queue: ").append(queueName)
|
planStr.append("Parent Queue: ").append(queueName)
|
||||||
.append("Total Capacity: ").append(totalCapacity).append("Step: ")
|
.append(" Total Capacity: ").append(totalCapacity).append(" Step: ")
|
||||||
.append(step);
|
.append(step);
|
||||||
for (ReservationAllocation reservation : getAllReservations()) {
|
for (ReservationAllocation reservation : getAllReservations()) {
|
||||||
planStr.append(reservation);
|
planStr.append(reservation);
|
||||||
|
Loading…
Reference in New Issue
Block a user