HBASE-21631: list_quotas should print human readable values for LIMIT
Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
parent
e160b5ac8d
commit
b2bf22e209
|
@ -205,7 +205,7 @@ class SpaceLimitSettings extends QuotaSettings {
|
||||||
if (proto.getQuota().getRemove()) {
|
if (proto.getQuota().getRemove()) {
|
||||||
sb.append(", REMOVE => ").append(proto.getQuota().getRemove());
|
sb.append(", REMOVE => ").append(proto.getQuota().getRemove());
|
||||||
} else {
|
} else {
|
||||||
sb.append(", LIMIT => ").append(proto.getQuota().getSoftLimit());
|
sb.append(", LIMIT => ").append(sizeToString(proto.getQuota().getSoftLimit()));
|
||||||
sb.append(", VIOLATION_POLICY => ").append(proto.getQuota().getViolationPolicy());
|
sb.append(", VIOLATION_POLICY => ").append(proto.getQuota().getViolationPolicy());
|
||||||
}
|
}
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
|
|
@ -276,7 +276,7 @@ public class GlobalQuotaSettingsImpl extends GlobalQuotaSettings {
|
||||||
if (spaceProto.getRemove()) {
|
if (spaceProto.getRemove()) {
|
||||||
builder.append(", REMOVE => ").append(spaceProto.getRemove());
|
builder.append(", REMOVE => ").append(spaceProto.getRemove());
|
||||||
} else {
|
} else {
|
||||||
builder.append(", LIMIT => ").append(spaceProto.getSoftLimit());
|
builder.append(", LIMIT => ").append(sizeToString(spaceProto.getSoftLimit()));
|
||||||
builder.append(", VIOLATION_POLICY => ").append(spaceProto.getViolationPolicy());
|
builder.append(", VIOLATION_POLICY => ").append(spaceProto.getViolationPolicy());
|
||||||
}
|
}
|
||||||
builder.append(" } ");
|
builder.append(" } ");
|
||||||
|
|
Loading…
Reference in New Issue