Package org.apache.hadoop.hdfs.FailoverTestUtil

Examples of org.apache.hadoop.hdfs.FailoverTestUtil.FailoverTestUtilHandler


  public void testFailoverInteractive(String[] input,
      boolean simulateEditLogCrash) throws Exception {
    int blocksBefore = blocksInFile();
    if (simulateEditLogCrash) {
      FailoverTestUtilHandler handler = new FailoverTestUtilHandler();
      InjectionHandler.set(handler);
    }
    // Txid will now mismatch.
    cluster.getPrimaryAvatar(0).avatar.namesystem.getEditLog()
        .setLastWrittenTxId(0);
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.FailoverTestUtil.FailoverTestUtilHandler

Copyright © 2018 www.massapicom. 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.