void join() { while (shouldRun) { try { blockPoolManager.joinAll(); if (blockPoolManager.getAllNamenodeThreads().size() == 0) { shouldRun = false; } // Terminate if shutdown is complete or 2 seconds after all BPs // are shutdown. synchronized(this) { wait(2000); } } catch (InterruptedException ex) { LOG.warn("Received exception in Datanode#join: {}", ex.toString()); } } }
void join() { while (shouldRun) { try { blockPoolManager.joinAll(); if (blockPoolManager.getAllNamenodeThreads() != null && blockPoolManager.getAllNamenodeThreads().length == 0) { shouldRun = false; } // Terminate if shutdown is complete or 2 seconds after all BPs // are shutdown. synchronized(this) { wait(2000); } } catch (InterruptedException ex) { LOG.warn("Received exception in Datanode#join: " + ex); } } }
void join() { while (shouldRun) { try { blockPoolManager.joinAll(); if (blockPoolManager.getAllNamenodeThreads() != null && blockPoolManager.getAllNamenodeThreads().length == 0) { shouldRun = false; } // Terminate if shutdown is complete or 2 seconds after all BPs // are shutdown. synchronized(this) { wait(2000); } } catch (InterruptedException ex) { LOG.warn("Received exception in Datanode#join: " + ex); } } }