HBASE-21631: list_quotas should print human readable values for LIMIT

Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
Sakthi 2018-12-21 16:23:08 -08:00 committed by Guanghao Zhang
parent e160b5ac8d
commit b2bf22e209
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ class SpaceLimitSettings extends QuotaSettings {
if (proto.getQuota().getRemove()) {
sb.append(", REMOVE => ").append(proto.getQuota().getRemove());
} else {
sb.append(", LIMIT => ").append(proto.getQuota().getSoftLimit());
sb.append(", LIMIT => ").append(sizeToString(proto.getQuota().getSoftLimit()));
sb.append(", VIOLATION_POLICY => ").append(proto.getQuota().getViolationPolicy());
}
return sb.toString();

View File

@ -276,7 +276,7 @@ public class GlobalQuotaSettingsImpl extends GlobalQuotaSettings {
if (spaceProto.getRemove()) {
builder.append(", REMOVE => ").append(spaceProto.getRemove());
} else {
builder.append(", LIMIT => ").append(spaceProto.getSoftLimit());
builder.append(", LIMIT => ").append(sizeToString(spaceProto.getSoftLimit()));
builder.append(", VIOLATION_POLICY => ").append(spaceProto.getViolationPolicy());
}
builder.append(" } ");