[ https://issues.apache.org/jira/browse/HBASE-18858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chia-Ping Tsai updated HBASE-18858: ----------------------------------- Summary: Ensures all resources are closed at the end of tests (was: Avoid NPE occurring in TestReplicationBase#tearDownAfterClass) > Ensures all resources are closed at the end of tests > ---------------------------------------------------- > > Key: HBASE-18858 > URL: https://issues.apache.org/jira/browse/HBASE-18858 > Project: HBase > Issue Type: Bug > Components: test > Reporter: Chia-Ping Tsai > Assignee: Chia-Ping Tsai > Priority: Minor > Fix For: 1.4.0, 1.3.2, 1.5.0, 1.2.7, 2.0.0-beta-1 > > Attachments: HBASE-18858.branch-1.v0.patch > > > {code} > public static void tearDownAfterClass() throws Exception { > htable2.close(); > htable1.close(); > admin.close(); > utility2.shutdownMiniCluster(); > utility1.shutdownMiniCluster(); > } > {code} > If the setUpBeforeClass() fail, some members will be NULL. We need to ensures > all resources are closed at the end of tests. -- This message was sent by Atlassian JIRA (v6.4.14#64029)