From 0ab7c3a18906fcf33af38da29c211ac7fcb46492 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Fri, 26 Oct 2018 14:31:49 +0800 Subject: [PATCH] HBASE-21391 RefreshPeerProcedure should also wait master initialized before executing --- .../hbase/master/replication/RefreshPeerProcedure.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/replication/RefreshPeerProcedure.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/replication/RefreshPeerProcedure.java index 8502edf6e05..2f43ae9282a 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/replication/RefreshPeerProcedure.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/replication/RefreshPeerProcedure.java @@ -205,6 +205,11 @@ public class RefreshPeerProcedure extends Procedure return false; } + @Override + protected boolean waitInitialized(MasterProcedureEnv env) { + return env.waitInitialized(this); + } + @Override protected void serializeStateData(ProcedureStateSerializer serializer) throws IOException { serializer.serialize(