[jira] [Updated] (HDFS-10769) BlockIdManager.clear doesn't reset the counter for blockGroupIdGenerator

2016-10-27 Thread Vinayakumar B (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-10769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vinayakumar B updated HDFS-10769:
-
   Resolution: Fixed
 Hadoop Flags: Reviewed
Fix Version/s: 3.0.0-alpha2
   Status: Resolved  (was: Patch Available)

Committed to trunk,
Thanks [~linyiqun] and [~rakeshr]

> 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
>Assignee: Yiqun Lin
>Priority: Minor
>  Labels: newbie
> Fix For: 3.0.0-alpha2
>
> Attachments: HDFS-10769-002.patch, HDFS-10769.001.patch
>
>
> 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-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-10769) BlockIdManager.clear doesn't reset the counter for blockGroupIdGenerator

2016-10-27 Thread Rakesh R (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-10769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rakesh R updated HDFS-10769:

Attachment: HDFS-10769-002.patch

> 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
>Assignee: Yiqun Lin
>Priority: Minor
>  Labels: newbie
> Attachments: HDFS-10769-002.patch, HDFS-10769.001.patch
>
>
> 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-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-10769) BlockIdManager.clear doesn't reset the counter for blockGroupIdGenerator

2016-08-17 Thread Yiqun Lin (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-10769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yiqun Lin updated HDFS-10769:
-
Status: Patch Available  (was: Open)

> 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
>Assignee: Yiqun Lin
>Priority: Minor
>  Labels: newbie
> Attachments: HDFS-10769.001.patch
>
>
> 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-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-10769) BlockIdManager.clear doesn't reset the counter for blockGroupIdGenerator

2016-08-17 Thread Yiqun Lin (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-10769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yiqun Lin updated HDFS-10769:
-
Attachment: HDFS-10769.001.patch

> 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
>Assignee: Yiqun Lin
>Priority: Minor
>  Labels: newbie
> Attachments: HDFS-10769.001.patch
>
>
> 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-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org