diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/SpaceLimitSettings.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/SpaceLimitSettings.java index 02bd6e489e8..8b31e94a4a3 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/SpaceLimitSettings.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/SpaceLimitSettings.java @@ -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(); diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/GlobalQuotaSettingsImpl.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/GlobalQuotaSettingsImpl.java index 0c6cb81b8fc..e47e4ffbd12 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/GlobalQuotaSettingsImpl.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/GlobalQuotaSettingsImpl.java @@ -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(" } ");