Skip to content

Commit 0b32cb0

Browse files
hiping-techApache9
authored andcommitted
HBASE-29057 Backport missing changes in HBASE-28023 to branch-2 (#6844)
Co-authored-by: lvhaiping.lhp <[email protected]> Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit b649bb9)
1 parent 112caaf commit 0b32cb0

File tree

1 file changed

+2
-2
lines changed
  • hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions

1 file changed

+2
-2
lines changed

hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/actions/Action.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ protected void suspendRs(ServerName server) throws IOException {
197197
getLogger().info("Suspending regionserver {}", server);
198198
cluster.suspendRegionServer(server);
199199
if (!(cluster instanceof MiniHBaseCluster)) {
200-
cluster.waitForRegionServerToStop(server, killRsTimeout);
200+
cluster.waitForRegionServerToSuspend(server, killRsTimeout);
201201
}
202202
getLogger().info("Suspending regionserver {}. Reported num of rs:{}", server,
203203
cluster.getClusterMetrics().getLiveServerMetrics().size());
@@ -207,7 +207,7 @@ protected void resumeRs(ServerName server) throws IOException {
207207
getLogger().info("Resuming regionserver {}", server);
208208
cluster.resumeRegionServer(server);
209209
if (!(cluster instanceof MiniHBaseCluster)) {
210-
cluster.waitForRegionServerToStart(server.getHostname(), server.getPort(), startRsTimeout);
210+
cluster.waitForRegionServerToResume(server, startRsTimeout);
211211
}
212212
getLogger().info("Resuming regionserver {}. Reported num of rs:{}", server,
213213
cluster.getClusterMetrics().getLiveServerMetrics().size());

0 commit comments

Comments
 (0)