hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ewan Higgs (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-10769) BlockIdManager.clear doesn't reset the counter for blockGroupIdGenerator
Date Wed, 17 Aug 2016 12:42:21 GMT
Ewan Higgs created HDFS-10769:
---------------------------------

             Summary: BlockIdManager.clear doesn't reset the counter for blockGroupIdGenerator
                 Key: HDFS-10769
                 URL: https://issues.apache.org/jira/browse/HDFS-10769
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs
    Affects Versions: 3.0.0-alpha1, 3.0.0-beta1
            Reporter: Ewan Higgs
            Priority: Minor


BlockIdManager.clear resets the block id generator for contiguous blocks but not for striped
blocks:

{code}
  void clear() {
    legacyGenerationStamp.setCurrentValue(GenerationStamp.LAST_RESERVED_STAMP);
    generationStamp.setCurrentValue(GenerationStamp.LAST_RESERVED_STAMP);
    getBlockIdGenerator().setCurrentValue(SequentialBlockIdGenerator
      .LAST_RESERVED_BLOCK_ID);
    legacyGenerationStampLimit = HdfsConstants.GRANDFATHER_GENERATION_STAMP;
  }
{code}

This should have:
{code}
getBlockGroupIdGenerator().setCurrentValue(Long.MIN_VALUE);
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org


Mime
View raw message