|
@@ -2710,7 +2710,11 @@ public class DataNode extends ReconfigurableBase
|
|
|
* If this thread is specifically interrupted, it will stop waiting.
|
|
|
*/
|
|
|
public void runDatanodeDaemon() throws IOException {
|
|
|
- blockPoolManager.startAll();
|
|
|
+
|
|
|
+ // Verify that blockPoolManager has been started.
|
|
|
+ if (!isDatanodeUp()) {
|
|
|
+ throw new IOException("Failed to instantiate DataNode.");
|
|
|
+ }
|
|
|
|
|
|
// start dataXceiveServer
|
|
|
dataXceiverServer.start();
|