[
https://issues.apache.org/jira/browse/HDFS-13225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16385694#comment-16385694
]
lufei commented on HDFS-13225:
------------------------------
With the HDFS-13225.001.patch, the exception message will like following:
{color:#707070}hadoop@EC102:/home/lufei> hadoop fs -get
/lufei/fsimage_0000000000268172191_140 test112{color}
{color:#707070}get: 3 missing blocks, the stripe is: AlignedStripe(Offset=0,
length=131072, fetchedChunksNum=0, missingChunksNum=3); locatedBlocks is:
LocatedBlocks\{ fileLength=209608136 underConstruction=false
blocks=[LocatedStripedBlock{BP-1334548269-192.168.111.102-1516775955629:blk_-9223372036854771904_14094;
getBlockSize()=209608136; corrupt=false; offset=0;
locs=[DatanodeInfoWithStorage[192.168.111.104:9866,DS-53d9abf5-a9de-4089-9c6c-cbf0d6cf1aec,DISK],
DatanodeInfoWithStorage[192.168.111.108:9866,DS-9200c892-001b-4614-8a19-e82f95dd9862,DISK],
DatanodeInfoWithStorage[192.168.111.103:9866,DS-ec0bdcbb-c3a7-4b1a-ba07-b69c747ad19f,DISK],
DatanodeInfoWithStorage[192.168.111.101:9866,DS-b88914c1-039f-4066-99cc-0da634167c01,DISK]];
indices=[1, 2, 3, 4]}]
lastLocatedBlock=LocatedStripedBlock\{BP-1334548269-192.168.111.102-1516775955629:blk_-9223372036854771904_14094;
getBlockSize()=209608136; corrupt=false; offset=0;
locs=[DatanodeInfoWithStorage[192.168.111.104:9866,DS-53d9abf5-a9de-4089-9c6c-cbf0d6cf1aec,DISK],
DatanodeInfoWithStorage[192.168.111.108:9866,DS-9200c892-001b-4614-8a19-e82f95dd9862,DISK],
DatanodeInfoWithStorage[192.168.111.103:9866,DS-ec0bdcbb-c3a7-4b1a-ba07-b69c747ad19f,DISK],
DatanodeInfoWithStorage[192.168.111.101:9866,DS-b88914c1-039f-4066-99cc-0da634167c01,DISK]];
indices=[1, 2, 3, 4]} isLastBlockComplete=true
ecPolicy=ErasureCodingPolicy=[Name=XOR-3-2-128k, Schema=[ECSchema=[Codec=xor,
numDataUnits=3, numParityUnits=2, options=]], CellSize=131072, Id=64]}{color}
{color:#707070}hadoop@EC102:/home/lufei>{color}
> StripeReader#checkMissingBlocks() 's IOException info is incomplete
> -------------------------------------------------------------------
>
> Key: HDFS-13225
> URL: https://issues.apache.org/jira/browse/HDFS-13225
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: erasure-coding, hdfs-client
> Affects Versions: 3.1.0, 3.2.0
> Reporter: lufei
> Assignee: lufei
> Priority: Major
> Attachments: HDFS-13225.001.patch
>
>
> When the file's ErasureCodingPolicy is XOR-3-2-128k, then stop 3 datanodes
> which were used by the block. With the following op(read the file), the
> exception message was incomplete, because of the class of LocatedBlocks's
> info was not displayed complete.
>
> {color:#707070}hadoop@EC102:/home/lufei> hadoop fs -get
> /lufei/fsimage_0000000000268172191_140 test112{color}
> {color:#707070}get: 3 missing blocks, the stripe is: AlignedStripe(Offset=0,
> length=131072, fetchedChunksNum=0, missingChunksNum=3); locatedBlocks is:
> {color:#d04437}LocatedBlocks{{color}{color}
> {color:#707070}hadoop@EC102:/home/lufei>{color}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]