Package org.apache.hadoop.util

Examples of org.apache.hadoop.util.CoronaFailureEvent


      if (this.tracker instanceof CoronaTaskTracker) {
        CoronaFailureEventInjector jtEventInjector =
            ((CoronaTaskTracker)this.tracker).jtFailureEventInjector;
        if (jtEventInjector != null) {
          LOG.info("Injecting failure event to RJT");
          CoronaFailureEvent failureEvent = jtEventInjector.pollFailureEvent();
          if (failureEvent != null) {
            LOG.info("Injecting failure event " + failureEvent.toString());
            vargs.add(failureEvent.toString());
          }
        }
      }
     //vargs.add("2:0");
    
View Full Code Here


       
        failure = String.format("%d:%d", when, how);
        LOG.info("gen a random failure event: " + failure);
      }
     
      CoronaFailureEvent failureEvent = CoronaFailureEvent.fromString(failure);
      CoronaFailureEventInjector injector =
          new CoronaFailureEventInjector();
      injector.injectFailureEvent(failureEvent);
     
      return injector;
View Full Code Here

      int mt, int rt,
      int failNum) throws Exception {
    LOG.info("Starting the test for " + testName);
   
    for (String fe:failureEvents) {
      CoronaFailureEvent event = CoronaFailureEvent.fromString(fe);
      if (event != null) {
        rjtFailureInjector.injectFailureEvent(event);
      }
    }
   
View Full Code Here

TOP

Related Classes of org.apache.hadoop.util.CoronaFailureEvent

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.