Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
Description
Write a small file (whose replica detail would be : one data replica and 3 parity replicas .)
Now :
totalReplicasPerBlock = 4
targetFileReplication = 9 (calculated based on default RS-6-3 schema)
Hence the small file ec-blocks is calculated as always missing and underreplicated. which is wrong...
targetFileReplication = (short) (ecSchema.getNumDataUnits() + ecSchema.getNumParityUnits());
// count missing replicas / under replicated blocks if (totalReplicasPerBlock < targetFileReplication && totalReplicasPerBlock > 0) { res.missingReplicas += (targetFileReplication - totalReplicasPerBlock); res.numUnderReplicatedBlocks += 1;
Attachments
Issue Links
- is related to
-
HDFS-8563 Erasure Coding: fsck handles file smaller than a full stripe
- Resolved