Examples of SleepAction


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

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

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

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

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

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

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

    final String methodName = FiTestUtil.getMethodName();
    runPipelineCloseTest(methodName, new SleepAction(methodName, 2, 0));
  }

  private static void run41_43(String name, int i) throws IOException {
    runPipelineCloseTest(name, new SleepAction(name, i, 3000));
  }
View Full Code Here

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

    t.fiPipelineAck.set(new ConstraintSatisfactionAction<DatanodeID, IOException>(a, marker));
    TestFiDataTransferProtocol.write1byte(name);
  }

  private static void run39_40(String name, int i) throws IOException {
    runPipelineCloseAck(name, i, new SleepAction(name, i, 0));
  }
View Full Code Here

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

      throws IOException {
    FiTestUtil.LOG.info("Running " + methodName + " ...");
    final int maxSleep = 3000;
    final DataTransferTest t = (DataTransferTest) DataTransferTestUtil
        .initTest();
    initSlowDatanodeTest(t, new SleepAction(methodName, 0, 0, maxSleep));
    initSlowDatanodeTest(t, new SleepAction(methodName, 1, 0, maxSleep));
    initSlowDatanodeTest(t, new SleepAction(methodName, 2, 0, maxSleep));
    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 int maxSleep = 3000;
    final DataTransferTest t = (DataTransferTest) DataTransferTestUtil
        .initTest();
    initSlowDatanodeTest(t, new SleepAction(methodName, 0, 0, maxSleep));
    initSlowDatanodeTest(t, new SleepAction(methodName, 1, 0, maxSleep));
    initSlowDatanodeTest(t, new SleepAction(methodName, 2, 0, maxSleep));
    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, 3000));
    writeSeveralPackets(methodName);
  }
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.