From 24f5f7afa829769302b11964bd893a1877f2075e 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 10e16e9a564..84349ea61ee 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 @@ -192,6 +192,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(