Examples of join()


Examples of org.apache.hadoop.hbase.MiniHBaseCluster.join()

        // In HBase 0.90.1 and above we can use util.shutdownMiniHBaseCluster()
        // here instead.
        MiniHBaseCluster hbc = util.getHBaseCluster();
        if (hbc != null) {
            hbc.shutdown();
            hbc.join();
        }
        util.shutdownMiniZKCluster();
        cluster.shutDown();
    }
   
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.TestDelayedRpc.TestThread.join()

        TestDelayedRpcProtos.TestDelayedService.newBlockingStub(channel);
      List<Integer> results = new ArrayList<Integer>();
      TestThread th1 = new TestThread(stub, true, results);
      th1.start();
      Thread.sleep(100);
      th1.join();

      assertEquals(0xDEADBEEF, results.get(0).intValue());
    } finally {
      rpcClient.stop();
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.cleaner.HFileCleaner.join()

          fs.delete(sourceFile, false);
        }
      }
    } finally {
      stoppable.stop("test end");
      cleaner.join();
      fs.delete(rootDir, true);
    }
  }

  private void clearArchiveDirectory() throws IOException {
View Full Code Here

Examples of org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceManager.join()

    } catch (InterruptedException e) {
      System.err.println("didn't wait long enough:" + e);
      return (-1);
    }

    manager.join();
    zkw.close();

    return (0);
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceManager.NodeFailoverWorker.join()

    rp1.init();
    NodeFailoverWorker w1 =
        manager.new NodeFailoverWorker(server.getServerName().getServerName(), rq1, rp1, new UUID(
            new Long(1), new Long(2)));
    w1.start();
    w1.join(5000);
    assertEquals(1, manager.getHlogsByIdRecoveredQueues().size());
    String id = "1-" + server.getServerName().getServerName();
    assertEquals(files, manager.getHlogsByIdRecoveredQueues().get(id));
    manager.cleanOldLogs("log2", id, true);
    // log1 should be deleted
View Full Code Here

Examples of org.apache.hadoop.hbase.util.JVMClusterUtil.MasterThread.join()

        } catch (Exception e) {
        }
      };
    };
    shutdownThread.start();
    master.join();
    shutdownThread.join();

    List<MasterThread> masterThreads = cluster.getMasters();
    // make sure all the masters properly shutdown
    assertEquals(0, masterThreads.size());
View Full Code Here

Examples of org.apache.hadoop.hdfs.notifier.server.ServerCore.join()

     
     
    } finally {
      if (notifier != null) {
        notifier.shutdown();
        notifier.join();
      }
    }
  }
 
  @Test
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.datanode.DataStorage.RollbackThread.join()

      rollbackThreads[i] = thread;
    }
    // wait for rollback to be done
    for (RollbackThread thread : rollbackThreads) {
      try {
        thread.join();
      } catch (InterruptedException e) {
        return;
      }
    }
    // check for errors
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.datanode.DataStorage.UpgradeThread.join()

      upgradeThreads[i] = thread;
    }
    // wait for upgrade to be done
    for (UpgradeThread thread : upgradeThreads) {
      try {
        thread.join();
      } catch (InterruptedException e) {
        throw (InterruptedIOException)new InterruptedIOException().initCause(e);
      }
    }
    // check for errors
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.NameNode.join()

    shutdownDataNodes(remove);
    for (NameNodeInfo nnInfo : nameNodes) {
      NameNode nameNode = nnInfo.nameNode;
      if (nameNode != null) {
        nameNode.stop();
        nameNode.join();
        nameNode = null;
      }
    }
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.