Examples of SleepAction


Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

   * Client gets an IOException and determine DN0 bad.
   */
  @Test
  public void pipeline_Fi_05() throws IOException {
    final String methodName = FiTestUtil.getMethodName();
    runStatusReadTest(methodName, 0, new SleepAction(methodName, 0, 0));
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

   * Client finishes setup successfully.
   */
  @Test
  public void pipeline_Fi_06() throws IOException {
    final String methodName = FiTestUtil.getMethodName();
    runSlowDatanodeTest(methodName, new SleepAction(methodName, 0, 3000));
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

   * Client finishes setup successfully.
   */
  @Test
  public void pipeline_Fi_07() throws IOException {
    final String methodName = FiTestUtil.getMethodName();
    runSlowDatanodeTest(methodName, new SleepAction(methodName, 1, 3000));
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

   * Client finishes setup successfully.
   */
  @Test
  public void pipeline_Fi_08() throws IOException {
    final String methodName = FiTestUtil.getMethodName();
    runSlowDatanodeTest(methodName, new SleepAction(methodName, 2, 3000));
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

  private void runTest17_19(String methodName, int dnIndex)
      throws IOException {
    FiTestUtil.LOG.info("Running " + methodName + " ...");
    final DataTransferTest t = (DataTransferTest) DataTransferTestUtil
        .initTest();
    initSlowDatanodeTest(t, new SleepAction(methodName, 0, 0, MAX_SLEEP));
    initSlowDatanodeTest(t, new SleepAction(methodName, 1, 0, MAX_SLEEP));
    initSlowDatanodeTest(t, new SleepAction(methodName, 2, 0, MAX_SLEEP));
    t.fiCallWritePacketToDisk.set(new CountdownDoosAction(methodName, dnIndex, 3));
    t.fiPipelineErrorAfterInit.set(new VerificationAction(methodName, dnIndex));
    writeSeveralPackets(methodName);
    Assert.assertTrue(t.isSuccess());
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

  private void runTest29_30(String methodName, int dnIndex) throws IOException {
    FiTestUtil.LOG.info("Running " + methodName + " ...");
    final DataTransferTest t = (DataTransferTest) DataTransferTestUtil
        .initTest();
    initSlowDatanodeTest(t, new SleepAction(methodName, 0, 0, MAX_SLEEP));
    initSlowDatanodeTest(t, new SleepAction(methodName, 1, 0, MAX_SLEEP));
    initSlowDatanodeTest(t, new SleepAction(methodName, 2, 0, MAX_SLEEP));
    t.fiAfterDownstreamStatusRead.set(new CountdownOomAction(methodName, dnIndex, 3));
    t.fiPipelineErrorAfterInit.set(new VerificationAction(methodName, dnIndex));
    writeSeveralPackets(methodName);
    Assert.assertTrue(t.isSuccess());
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

  public void pipeline_Fi_20() throws IOException {
    final String methodName = FiTestUtil.getMethodName();
    FiTestUtil.LOG.info("Running " + methodName + " ...");
    final DataTransferTest t = (DataTransferTest) DataTransferTestUtil
        .initTest();
    initSlowDatanodeTest(t, new SleepAction(methodName, 0, MAX_SLEEP));
    writeSeveralPackets(methodName);
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

  public void pipeline_Fi_21() throws IOException {
    final String methodName = FiTestUtil.getMethodName();
    FiTestUtil.LOG.info("Running " + methodName + " ...");
    final DataTransferTest t = (DataTransferTest) DataTransferTestUtil
        .initTest();
    initSlowDatanodeTest(t, new SleepAction(methodName, 1, MAX_SLEEP));
    writeSeveralPackets(methodName);
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

  public void pipeline_Fi_22() throws IOException {
    final String methodName = FiTestUtil.getMethodName();
    FiTestUtil.LOG.info("Running " + methodName + " ...");
    final DataTransferTest t = (DataTransferTest) DataTransferTestUtil
        .initTest();
    initSlowDatanodeTest(t, new SleepAction(methodName, 2, MAX_SLEEP));
    writeSeveralPackets(methodName);
  }
View Full Code Here

Examples of org.apache.hadoop.fi.DataTransferTestUtil.SleepAction

  private void runTest17_19(String methodName, int dnIndex)
      throws IOException {
    FiTestUtil.LOG.info("Running " + methodName + " ...");
    final DataTransferTest t = (DataTransferTest) DataTransferTestUtil
        .initTest();
    initSlowDatanodeTest(t, new SleepAction(methodName, 0, 0, MAX_SLEEP));
    initSlowDatanodeTest(t, new SleepAction(methodName, 1, 0, MAX_SLEEP));
    initSlowDatanodeTest(t, new SleepAction(methodName, 2, 0, MAX_SLEEP));
    t.fiCallWritePacketToDisk.set(new CountdownDoosAction(methodName, dnIndex, 3));
    t.fiPipelineErrorAfterInit.set(new VerificationAction(methodName, dnIndex));
    writeSeveralPackets(methodName);
    Assert.assertTrue(t.isSuccess());
  }
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.