[Bug] The toString() method in PartitionInfo class. Property information strings are concatenated together (#5407)

This commit is contained in:
zhuixun
2021-03-04 22:22:37 +08:00
committed by GitHub
parent c38a1c799f
commit bfce98f4b9

View File

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