Examples of HFlushTest


Examples of org.apache.hadoop.fi.FiHFlushTestUtil.HFlushTest

  private static void runDiskErrorTest (final Configuration conf,
      final String methodName, final int block_size, DerrAction a, int index,
      boolean trueVerification)
      throws IOException {
    FiTestUtil.LOG.info("Running " + methodName + " ...");
    final HFlushTest hft = (HFlushTest) FiHFlushTestUtil.initTest();
    hft.fiCallHFlush.set(a);
    hft.fiErrorOnCallHFlush.set(new DataTransferTestUtil.VerificationAction(methodName, index));
    TestHFlush.doTheJob(conf, methodName, block_size, (short)3);
    if (!trueVerification)
      assertTrue(!hft.isSuccess());
    else
      assertTrue(hft.isSuccess());     
  }
View Full Code Here

Examples of org.apache.hadoop.fi.FiHFlushTestUtil.HFlushTest

  private static void runDiskErrorTest (final Configuration conf,
      final String methodName, final int block_size, DerrAction a, int index,
      boolean trueVerification)
      throws IOException {
    FiTestUtil.LOG.info("Running " + methodName + " ...");
    final HFlushTest hft = (HFlushTest) FiHFlushTestUtil.initTest();
    hft.fiCallHFlush.set(a);
    hft.fiErrorOnCallHFlush.set(new DataTransferTestUtil.VerificationAction(methodName, index));
    TestHFlush.doTheJob(conf, methodName, block_size, (short)3);
    if (trueVerification)
      assertTrue("Some of expected conditions weren't detected", hft.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.