haiyang1987 opened a new pull request, #5414:
URL: https://github.com/apache/hadoop/pull/5414

   ### Description of PR
   
   [HDFS-16899](https://issues.apache.org/jira/browse/HDFS-16899)
   
   
TestAddOverReplicatedStripedBlocks#testProcessOverReplicatedAndCorruptStripedBlock
 occasionally appear failed.
   
   Failed code Line is 
   
   ```
   // verify that all internal blocks exists except b0
   // the redundant internal blocks will not be deleted before the corrupted
   // block gets reconstructed. but since we set
   // DFS_NAMENODE_REPLICATION_MAX_STREAMS_KEY to 0, the reconstruction will
   // not happen
   lbs = cluster.getNameNodeRpc().getBlockLocations(filePath.toString(), 0,
    fileLen);
   bg = (LocatedStripedBlock) (lbs.get(0)); 
   assertEquals(groupSize + 1, bg.getBlockIndices().length); //here not equals. 
   ```
   From the perspective of normal logic, the internal blocks that need to be 
obtained are 10, 8 live and 2 redundant internal blocks, 
   but due to the processing logic that occasionally triggers invalidate to 
remove redundant internal block, 
   the final obtained internal blocks value does not meet expectations.
   
   So need avoid the redundant internal blocks will be deleted.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to