From b3167a0e50d85a838dc702f6d32002a205c7e3ae Mon Sep 17 00:00:00 2001 From: Jan Hentschel Date: Mon, 11 Dec 2017 22:56:33 +0100 Subject: [PATCH] Revert "HBASE-17425 Fixed deprecated calls in TestUpdateConfiguration" This reverts commit c434cab5d1e45be8aff018d1b6c91e2994154ea5. --- .../apache/hadoop/hbase/client/TestUpdateConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestUpdateConfiguration.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestUpdateConfiguration.java index 89931ae41db..226c9e7d347 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestUpdateConfiguration.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestUpdateConfiguration.java @@ -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();