From 7aa6da654dd1663b2a4fa4ee7c02abf7c9ec6252 Mon Sep 17 00:00:00 2001 From: Haohui Mai Date: Thu, 13 Nov 2014 14:43:03 -0800 Subject: [PATCH] HDFS-7395. BlockIdManager#clear() bails out when resetting the GenerationStampV1Limit. Contributed by Haohui Mai. --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop/hdfs/server/blockmanagement/BlockIdManager.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index bb61e1435e5..e66cfac55b1 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -169,6 +169,9 @@ Release 2.7.0 - UNRELEASED HDFS-7358. Clients may get stuck waiting when using ByteArrayManager. (szetszwo) + HDFS-7395. BlockIdManager#clear() bails out when resetting the + GenerationStampV1Limit. (wheat9) + Release 2.6.0 - 2014-11-18 INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockIdManager.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockIdManager.java index 8f547f14569..1c69203afcc 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockIdManager.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockIdManager.java @@ -203,6 +203,6 @@ public class BlockIdManager { generationStampV2.setCurrentValue(GenerationStamp.LAST_RESERVED_STAMP); getBlockIdGenerator().setCurrentValue(SequentialBlockIdGenerator .LAST_RESERVED_BLOCK_ID); - setGenerationStampV1Limit(GenerationStamp.GRANDFATHER_GENERATION_STAMP); + generationStampV1Limit = GenerationStamp.GRANDFATHER_GENERATION_STAMP; } } \ No newline at end of file