Java 类org.apache.hadoop.hdfs.server.blockmanagement.OutOfV1GenerationStampsException 实例源码

项目:hadoop-2.6.0-cdh5.4.3    文件:FSNamesystem.java   
@VisibleForTesting
long getNextGenerationStampV1() throws IOException {
  long genStampV1 = generationStampV1.nextValue();

  if (genStampV1 >= generationStampV1Limit) {
    // We ran out of generation stamps for legacy blocks. In practice, it
    // is extremely unlikely as we reserved 1T v1 generation stamps. The
    // result is that we can no longer append to the legacy blocks that
    // were created before the upgrade to sequential block IDs.
    throw new OutOfV1GenerationStampsException();
  }

  return genStampV1;
}
项目:FlexMap    文件:FSNamesystem.java   
@VisibleForTesting
long getNextGenerationStampV1() throws IOException {
  long genStampV1 = generationStampV1.nextValue();

  if (genStampV1 >= generationStampV1Limit) {
    // We ran out of generation stamps for legacy blocks. In practice, it
    // is extremely unlikely as we reserved 1T v1 generation stamps. The
    // result is that we can no longer append to the legacy blocks that
    // were created before the upgrade to sequential block IDs.
    throw new OutOfV1GenerationStampsException();
  }

  return genStampV1;
}
项目:hadoop-on-lustre2    文件:FSNamesystem.java   
@VisibleForTesting
long getNextGenerationStampV1() throws IOException {
  long genStampV1 = generationStampV1.nextValue();

  if (genStampV1 >= generationStampV1Limit) {
    // We ran out of generation stamps for legacy blocks. In practice, it
    // is extremely unlikely as we reserved 1T v1 generation stamps. The
    // result is that we can no longer append to the legacy blocks that
    // were created before the upgrade to sequential block IDs.
    throw new OutOfV1GenerationStampsException();
  }

  return genStampV1;
}