Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
2.6.0
-
None
-
None
-
cdh5.4.0
Description
The bug introduce from HDFS-7430 , the time is not same, one is monotonicMs and other is clock time. It should use Time.now() both
VolumeScanner.java
long saveDelta = monotonicMs - curBlockIter.getLastSavedMs(); if (saveDelta >= conf.cursorSaveMs) { LOG.debug("{}: saving block iterator {} after {} ms.", this, curBlockIter, saveDelta); saveBlockIterator(curBlockIter); }
curBlockIter.getLastSavedMs() init here
FsVolumeImpl.java
BlockIteratorState() { lastSavedMs = iterStartMs = Time.now(); curFinalizedDir = null; curFinalizedSubDir = null; curEntry = null; atEnd = false; }
Attachments
Attachments
Issue Links
- is broken by
-
HDFS-7430 Rewrite the BlockScanner to use O(1) memory and use multiple threads
- Closed