Examples of CheckpointSignature


Examples of org.apache.hadoop.hdfs.server.namenode.CheckpointSignature

    assertEquals(expKeys.getTokenLifetime(), expKeys1.getTokenLifetime());
  }

  @Test
  public void testConvertCheckpointSignature() {
    CheckpointSignature s = new CheckpointSignature(getStorageInfo(), "bpid",
        100, 1);
    CheckpointSignatureProto sProto = PBHelper.convert(s);
    CheckpointSignature s1 = PBHelper.convert(sProto);
    assertEquals(s.getBlockpoolID(), s1.getBlockpoolID());
    assertEquals(s.getClusterID(), s1.getClusterID());
    assertEquals(s.getCTime(), s1.getCTime());
    assertEquals(s.getCurSegmentTxId(), s1.getCurSegmentTxId());
    assertEquals(s.getLayoutVersion(), s1.getLayoutVersion());
    assertEquals(s.getMostRecentCheckpointTxId(),
        s1.getMostRecentCheckpointTxId());
    assertEquals(s.getNamespaceID(), s1.getNamespaceID());
  }
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.CheckpointSignature

        checkpointStatus("Disabled");
        // This means the Standby is not meant to checkpoint the primary
        LOG.info("Standby: Checkpointing is disabled - return");
        return;
      }
      CheckpointSignature sig = null;
      InjectionHandler.processEvent(InjectionEvent.STANDBY_BEFORE_ROLL_EDIT);
      try {
        LOG.info("Standby: Checkpointing - Roll edits logs of primary namenode "
            + nameNodeAddr);
        checkpointStatus("Edit log rolled on primary");
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.CheckpointSignature

       
      assertState(
          StandbyIngestState.NOT_INGESTING,
          StandbyIngestState.INGESTING_EDITS);
     
      primaryNamenode.rollFsImage(new CheckpointSignature(fsImage));
      setLastRollSignature(null);     
      LOG.info("Standby: Checkpointing - Checkpoint done. New Image Size: "
          + fsImage.getFsImageName(StorageLocationType.LOCAL).length());
      checkpointStatus("Completed");
    } finally {
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.