[Bug] The toString() method in PartitionInfo class. Property information strings are concatenated together (#5407)
This commit is contained in:
@ -192,15 +192,15 @@ public class PartitionInfo implements Writable {
|
||||
buff.append("type: ").append(type.typeString).append("; ");
|
||||
|
||||
for (Map.Entry<Long, DataProperty> entry : idToDataProperty.entrySet()) {
|
||||
buff.append(entry.getKey()).append("is HDD: ");;
|
||||
buff.append(entry.getKey()).append(" is HDD: ");
|
||||
if (entry.getValue().equals(new DataProperty(TStorageMedium.HDD))) {
|
||||
buff.append(true);
|
||||
} else {
|
||||
buff.append(false);
|
||||
|
||||
}
|
||||
buff.append("data_property: ").append(entry.getValue().toString());
|
||||
buff.append("replica number: ").append(idToReplicationNum.get(entry.getKey()));
|
||||
buff.append("; ");
|
||||
buff.append("data_property: ").append(entry.getValue().toString()).append("; ");;
|
||||
buff.append("replica number: ").append(idToReplicationNum.get(entry.getKey())).append("; ");;
|
||||
buff.append("in memory: ").append(idToInMemory.get(entry.getKey()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user