File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
hbase-server/src/main/java/org/apache/hadoop/hbase/master Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -222,14 +222,16 @@ public synchronized boolean isTableAvailableAndInitialized(
222222 return true ;
223223 }
224224
225+ if (zkNamespaceManager == null ) {
226+ zkNamespaceManager = new ZKNamespaceManager (masterServices .getZooKeeper ());
227+ zkNamespaceManager .start ();
228+ }
229+
225230 // Now check if the table is assigned, if not then fail fast
226231 if (isTableAssigned ()) {
227232 try {
228233 boolean initGoodSofar = true ;
229234 nsTable = this .masterServices .getConnection ().getTable (TableName .NAMESPACE_TABLE_NAME );
230- zkNamespaceManager = new ZKNamespaceManager (masterServices .getZooKeeper ());
231- zkNamespaceManager .start ();
232-
233235 if (get (nsTable , NamespaceDescriptor .DEFAULT_NAMESPACE .getName ()) == null ) {
234236 if (createNamespaceAync ) {
235237 masterServices .getMasterProcedureExecutor ().submitProcedure (
You can’t perform that action at this time.
0 commit comments