Skip to content

Commit 78bcd70

Browse files
HubSpot Backport: HBASE-29573: Fully load QuotaCache instead of reading individual rows on demand (will be in 2.6.4)
Signed-off by: Ray Mattingly <[email protected]>
1 parent 1d15d6a commit 78bcd70

17 files changed

+362
-444
lines changed

hbase-client/src/main/java/org/apache/hadoop/hbase/quotas/QuotaTableUtil.java

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -206,37 +206,6 @@ private static Quotas getQuotas(final Connection connection, final byte[] rowKey
206206
return quotasFromData(result.getValue(QUOTA_FAMILY_INFO, qualifier));
207207
}
208208

209-
public static Get makeGetForTableQuotas(final TableName table) {
210-
Get get = new Get(getTableRowKey(table));
211-
get.addFamily(QUOTA_FAMILY_INFO);
212-
return get;
213-
}
214-
215-
public static Get makeGetForNamespaceQuotas(final String namespace) {
216-
Get get = new Get(getNamespaceRowKey(namespace));
217-
get.addFamily(QUOTA_FAMILY_INFO);
218-
return get;
219-
}
220-
221-
public static Get makeGetForRegionServerQuotas(final String regionServer) {
222-
Get get = new Get(getRegionServerRowKey(regionServer));
223-
get.addFamily(QUOTA_FAMILY_INFO);
224-
return get;
225-
}
226-
227-
public static Get makeGetForUserQuotas(final String user, final Iterable<TableName> tables,
228-
final Iterable<String> namespaces) {
229-
Get get = new Get(getUserRowKey(user));
230-
get.addColumn(QUOTA_FAMILY_INFO, QUOTA_QUALIFIER_SETTINGS);
231-
for (final TableName table : tables) {
232-
get.addColumn(QUOTA_FAMILY_INFO, getSettingsQualifierForUserTable(table));
233-
}
234-
for (final String ns : namespaces) {
235-
get.addColumn(QUOTA_FAMILY_INFO, getSettingsQualifierForUserNamespace(ns));
236-
}
237-
return get;
238-
}
239-
240209
public static Scan makeScan(final QuotaFilter filter) {
241210
Scan scan = new Scan();
242211
scan.addFamily(QUOTA_FAMILY_INFO);

0 commit comments

Comments
 (0)