HDFS-15459. TestBlockTokenWithDFSStriped fails intermittently. Contributed by Ahmed Hussein.

This commit is contained in:
Inigo Goiri 2020-10-23 09:47:10 -07:00
parent 7bdf165f62
commit e7aa4da0a2
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ public class TestBlockTokenWithDFSStriped extends TestBlockTokenWithDFS {
LocatedBlock[] internalBlocks = StripedBlockUtil.parseStripedBlockGroup
(lsb, cellSize, dataBlocks, parityBlocks);
for (LocatedBlock internalBlock : internalBlocks) {
if(super.isBlockTokenExpired(internalBlock)){
if(internalBlock != null && super.isBlockTokenExpired(internalBlock)) {
return true;
}
}