HDFS-8850. VolumeScanner thread exits with exception if there is no block pool to be scanned but there are suspicious blocks. (Colin Patrick McCabe via yliu)
This commit is contained in:
parent
89ccfd9fcc
commit
d2b941f94a
|
@ -767,6 +767,10 @@ Release 2.8.0 - UNRELEASED
|
||||||
HDFS-8847. change TestHDFSContractAppend to not override
|
HDFS-8847. change TestHDFSContractAppend to not override
|
||||||
testRenameFileBeingAppended method. (Zhihai Xu)
|
testRenameFileBeingAppended method. (Zhihai Xu)
|
||||||
|
|
||||||
|
HDFS-8850. VolumeScanner thread exits with exception if there is no block
|
||||||
|
pool to be scanned but there are suspicious blocks. (Colin Patrick McCabe
|
||||||
|
via yliu)
|
||||||
|
|
||||||
Release 2.7.2 - UNRELEASED
|
Release 2.7.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -536,12 +536,14 @@ public class VolumeScanner extends Thread {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (curBlockIter != null) {
|
||||||
long saveDelta = monotonicMs - curBlockIter.getLastSavedMs();
|
long saveDelta = monotonicMs - curBlockIter.getLastSavedMs();
|
||||||
if (saveDelta >= conf.cursorSaveMs) {
|
if (saveDelta >= conf.cursorSaveMs) {
|
||||||
LOG.debug("{}: saving block iterator {} after {} ms.",
|
LOG.debug("{}: saving block iterator {} after {} ms.",
|
||||||
this, curBlockIter, saveDelta);
|
this, curBlockIter, saveDelta);
|
||||||
saveBlockIterator(curBlockIter);
|
saveBlockIterator(curBlockIter);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
bytesScanned = scanBlock(block, conf.targetBytesPerSec);
|
bytesScanned = scanBlock(block, conf.targetBytesPerSec);
|
||||||
if (bytesScanned >= 0) {
|
if (bytesScanned >= 0) {
|
||||||
scannedBytesSum += bytesScanned;
|
scannedBytesSum += bytesScanned;
|
||||||
|
|
Loading…
Reference in New Issue