[
https://issues.apache.org/jira/browse/HDFS-9837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15166326#comment-15166326
]
Hudson commented on HDFS-9837:
------------------------------
FAILURE: Integrated in Hadoop-trunk-Commit #9364 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/9364/])
HDFS-9837. BlockManager#countNodes should be able to detect duplicated (jing9:
rev 47b92f2b6f2dafc129a41b247f35e77c8e47ffba)
*
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestAddOverReplicatedStripedBlocks.java
*
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestReconstructStripedBlocks.java
*
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java
*
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockInfoStriped.java
*
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestBlockManagerSafeMode.java
*
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/NumberReplicas.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
> BlockManager#countNodes should be able to detect duplicated internal blocks
> ---------------------------------------------------------------------------
>
> Key: HDFS-9837
> URL: https://issues.apache.org/jira/browse/HDFS-9837
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Affects Versions: 3.0.0
> Reporter: Jing Zhao
> Assignee: Jing Zhao
> Fix For: 3.0.0
>
> Attachments: HDFS-9837.000.patch, HDFS-9837.001.patch,
> HDFS-9837.002.patch, HDFS-9837.003.patch, HDFS-9837.004.patch
>
>
> Currently {{BlockManager#countNodes}} only counts the number of
> replicas/internal blocks thus it cannot detect the under-replicated scenario
> where a striped EC block has 9 internal blocks but contains duplicated
> data/parity blocks. E.g., b8 is missing while 2 b0 exist:
> b0, b1, b2, b3, b4, b5, b6, b7, b0
> If the NameNode keeps running, NN is able to detect the duplication of b0 and
> will put the block into the excess map. {{countNodes}} excludes internal
> blocks captured in the excess map thus can return the correct number of live
> replicas. However, if NN restarts before sending out the reconstruction
> command, the missing internal block cannot be detected anymore. The following
> steps can reproduce the issue:
> # create an EC file
> # kill DN1 and wait for the reconstruction to happen
> # start DN1 again
> # kill DN2 and restart NN immediately
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)