HBASE-6644 HBaseAdmin.createTable should wait more till table is enabled.
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1376680 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f96e1641cf
commit
b02f807aa3
|
@ -451,10 +451,17 @@ public class HBaseAdmin implements Abortable, Closeable {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
doneWithMetaScan = true;
|
doneWithMetaScan = true;
|
||||||
|
tries = -1;
|
||||||
}
|
}
|
||||||
}
|
} else if (isTableEnabled(desc.getName())) {
|
||||||
if (doneWithMetaScan && isTableEnabled(desc.getName())) {
|
|
||||||
return;
|
return;
|
||||||
|
} else {
|
||||||
|
try { // Sleep
|
||||||
|
Thread.sleep(getPauseTime(tries));
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
throw new InterruptedIOException("Interrupted when waiting" +
|
||||||
|
" for table to be enabled; meta scan was done");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw new TableNotEnabledException(
|
throw new TableNotEnabledException(
|
||||||
|
|
Loading…
Reference in New Issue