Examples of doCheckpoint()


Examples of com.dianping.cat.analysis.MessageAnalyzer.doCheckpoint()

    }

    MessageAnalyzer analyzer = manager.getAnalyzer("dump", now);

    analyzer.analyze(queue);
    analyzer.doCheckpoint(true);

    UploaderAndCleaner uploader = lookup(UploaderAndCleaner.class);

    uploader.setSleepPeriod(0);
    Thread.sleep(30 * 100 * 1000);
 
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.AvatarNode.doCheckpoint()

   
   
    try {
      Thread.sleep(3000);
      h.failNextCheckpoint = true;
      standby.doCheckpoint();
      fail("Should get IOException here");
    } catch (Exception e) {  }
   
    // checkpoint failed
    assertNotNull(h.lastSignature);
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.AvatarNode.doCheckpoint()

   
    // checkpoint failed
    assertNotNull(h.lastSignature);
   
    h.failNextCheckpoint = false;
    standby.doCheckpoint();
    // checkpoint succeeded
    assertNull(h.lastSignature);
   
    h.failNextCheckpoint = true;
    try {
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.AvatarNode.doCheckpoint()

    // checkpoint succeeded
    assertNull(h.lastSignature);
   
    h.failNextCheckpoint = true;
    try {
      standby.doCheckpoint();
      fail("Should get IOException here");
    } catch (Exception e) {  }
    // checkpoint failed -> now reading edits.new
   
   
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.AvatarNode.doCheckpoint()

    AvatarNode standby = cluster.getStandbyAvatar(0).avatar;
   
    try {
      Thread.sleep(3000);
      h.failNextCheckpoint = true;
      standby.doCheckpoint();
      fail("Should get IOException here");
    } catch (IOException e) {  }
    // checkpoint did not succeed
    assertNotNull(h.lastSignature);
   
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.AvatarNode.doCheckpoint()

    } catch (IOException e) {  }
    // checkpoint did not succeed
    assertNotNull(h.lastSignature);
   
    try {
      standby.doCheckpoint();
      fail("Should get IOException here");
    } catch (IOException e) {  }
    // checkpoint did not succeed
    assertNotNull(h.lastSignature);
   
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.AvatarNode.doCheckpoint()

    // checkpoint did not succeed
    assertNotNull(h.lastSignature);
   
    try {
      h.alterSignature = true;
      standby.doCheckpoint();
      fail("Checkpoint should not succeed and throw RuntimeException");
    } catch (Exception e) {
      LOG.info("Expected exception : " + e.toString());
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.AvatarNode.doCheckpoint()

    AvatarNode standby = cluster.getStandbyAvatar(0).avatar;
   
    try {
      Thread.sleep(3000);
      h.failNextCheckpoint = true;
      standby.doCheckpoint();
      fail("Should get IOException here");
    } catch (IOException e) {  }
    // checkpoint failed
    assertNotNull(h.lastSignature);
   
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.AvatarNode.doCheckpoint()

    Thread.sleep(2000);
   
    standby = cluster.getStandbyAvatar(0).avatar;
    h.failNextCheckpoint = false;
    
    standby.doCheckpoint();
    // checkpoint succeeded
    assertNull(h.lastSignature);
   
    createEdits(20);
    standby.quiesceStandby(getCurrentTxId(primary)-1);
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.AvatarNode.doCheckpoint()

    createEdits(20);
    AvatarNode primary = cluster.getPrimaryAvatar(0).avatar;
    AvatarNode standby = cluster.getStandbyAvatar(0).avatar;
   
    Thread.sleep(3000);
    standby.doCheckpoint();
    assertTrue(h.ingestRecreatedAfterFailure);
    h.simulateEditsNotExists = false;
   
    createEdits(20);
    standby.quiesceStandby(getCurrentTxId(primary)-1);
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.