hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fatkun (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-12209) VolumeScanner scan cursor not save periodic
Date Fri, 28 Jul 2017 07:44:02 GMT
fatkun created HDFS-12209:

             Summary: VolumeScanner scan cursor not save periodic
                 Key: HDFS-12209
                 URL: https://issues.apache.org/jira/browse/HDFS-12209
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs
    Affects Versions: 2.6.0
         Environment: cdh5.4.0
            Reporter: fatkun

The bug introduce from HDFS-7430 , the time is not same, one is monotonicMs and other is clock

        long saveDelta = monotonicMs - curBlockIter.getLastSavedMs();
        if (saveDelta >= conf.cursorSaveMs) {
          LOG.debug("{}: saving block iterator {} after {} ms.",
                  this, curBlockIter, saveDelta);

curBlockIter.getLastSavedMs() init here

    BlockIteratorState() {
      lastSavedMs = iterStartMs = Time.now();
      curFinalizedDir = null;
      curFinalizedSubDir = null;
      curEntry = null;
      atEnd = false;

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org

View raw message