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)
(cherry picked from commit d2b941f94a
)
Conflicts:
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
This commit is contained in:
parent
3249c3ce56
commit
b2bc72a051
|
@ -53,6 +53,10 @@ Release 2.7.2 - UNRELEASED
|
|||
HDFS-9106. Transfer failure during pipeline recovery causes permanent
|
||||
write failures (kihwal)
|
||||
|
||||
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.1 - 2015-07-06
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -536,11 +536,13 @@ public class VolumeScanner extends Thread {
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
long saveDelta = monotonicMs - curBlockIter.getLastSavedMs();
|
||||
if (saveDelta >= conf.cursorSaveMs) {
|
||||
LOG.debug("{}: saving block iterator {} after {} ms.",
|
||||
this, curBlockIter, saveDelta);
|
||||
saveBlockIterator(curBlockIter);
|
||||
if (curBlockIter != null) {
|
||||
long saveDelta = monotonicMs - curBlockIter.getLastSavedMs();
|
||||
if (saveDelta >= conf.cursorSaveMs) {
|
||||
LOG.debug("{}: saving block iterator {} after {} ms.",
|
||||
this, curBlockIter, saveDelta);
|
||||
saveBlockIterator(curBlockIter);
|
||||
}
|
||||
}
|
||||
bytesScanned = scanBlock(block, conf.targetBytesPerSec);
|
||||
if (bytesScanned >= 0) {
|
||||
|
|
Loading…
Reference in New Issue