hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-5455) NN needs to update storageMap on first heartbeat
Date Mon, 04 Nov 2013 20:38:18 GMT
Arpit Agarwal created HDFS-5455:

             Summary: NN needs to update storageMap on first heartbeat
                 Key: HDFS-5455
                 URL: https://issues.apache.org/jira/browse/HDFS-5455
             Project: Hadoop HDFS
          Issue Type: Sub-task
          Components: namenode
    Affects Versions: Heterogeneous Storage (HDFS-2832)
            Reporter: Arpit Agarwal
            Assignee: Arpit Agarwal

Currently the NN updates {{DatanodeDescriptor#storageMap}} while processing block reports
but not from heartbeats. This results in the {{DatanodeStorageInfo#blockContentsStale}} being
stale even after the first heartbeat is received.
  void receivedBlockReport() {
    if (heartbeatedSinceFailover) {
      blockContentsStale = false;

To preserve existing behavior we can just start updating storageMap if we see a new storage
ID in a heartbeart.

This message was sent by Atlassian JIRA

View raw message