Ted Yu created KYLIN-1638:
-----------------------------
Summary: Unclosed HBaseAdmin in ToolUtil#getHBaseMetaStoreId()
Key: KYLIN-1638
URL: https://issues.apache.org/jira/browse/KYLIN-1638
Project: Kylin
Issue Type: Bug
Reporter: Ted Yu
Priority: Minor
{code}
public static String getHBaseMetaStoreId() throws IOException {
final HBaseAdmin hbaseAdmin = new
HBaseAdmin(HBaseConfiguration.create(HadoopUtil.getCurrentConfiguration()));
final String metaStoreName =
KylinConfig.getInstanceFromEnv().getMetadataUrlPrefix();
final HTableDescriptor desc =
hbaseAdmin.getTableDescriptor(TableName.valueOf(metaStoreName));
return "MetaStore UUID: " +
desc.getValue(HBaseConnection.HTABLE_UUID_TAG);
{code}
hbaseAdmin should be closed upon return.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)