Revert "HBASE-17425 Fixed deprecated calls in TestUpdateConfiguration"

This reverts commit c434cab5d1.
This commit is contained in:
Jan Hentschel 2017-12-11 22:56:33 +01:00
parent c434cab5d1
commit b3167a0e50
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ public class TestUpdateConfiguration {
@Test
public void testOnlineConfigChange() throws IOException {
LOG.debug("Starting the test");
Admin admin = TEST_UTIL.getAdmin();
Admin admin = TEST_UTIL.getHBaseAdmin();
ServerName server = TEST_UTIL.getHBaseCluster().getRegionServer(0).getServerName();
admin.updateConfiguration(server);
}
@ -65,7 +65,7 @@ public class TestUpdateConfiguration {
// update hbase-site.xml by overwriting it
Files.copy(cnf2Path, cnfPath, StandardCopyOption.REPLACE_EXISTING);
Admin admin = TEST_UTIL.getAdmin();
Admin admin = TEST_UTIL.getHBaseAdmin();
ServerName server = TEST_UTIL.getHBaseCluster().getMaster().getServerName();
admin.updateConfiguration(server);
Configuration conf = TEST_UTIL.getMiniHBaseCluster().getMaster().getConfiguration();