HDFS-15459. TestBlockTokenWithDFSStriped fails intermittently. Contributed by Ahmed Hussein.
(cherry picked from commit e7aa4da0a2
)
This commit is contained in:
parent
e21b81276e
commit
c55d639e8f
@ -136,7 +136,7 @@ protected boolean isBlockTokenExpired(LocatedBlock lb) throws IOException {
|
|||||||
LocatedBlock[] internalBlocks = StripedBlockUtil.parseStripedBlockGroup
|
LocatedBlock[] internalBlocks = StripedBlockUtil.parseStripedBlockGroup
|
||||||
(lsb, cellSize, dataBlocks, parityBlocks);
|
(lsb, cellSize, dataBlocks, parityBlocks);
|
||||||
for (LocatedBlock internalBlock : internalBlocks) {
|
for (LocatedBlock internalBlock : internalBlocks) {
|
||||||
if(super.isBlockTokenExpired(internalBlock)){
|
if(internalBlock != null && super.isBlockTokenExpired(internalBlock)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user