HDFS-15459. TestBlockTokenWithDFSStriped fails intermittently. Contributed by Ahmed Hussein.
(cherry picked from commit e7aa4da0a2
)
This commit is contained in:
parent
8c6478b405
commit
7119af2c6d
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue