Details

    • Hadoop Flags:
      Reviewed

      Description

      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;
      

      We need to update storageMap if we see a new storage ID in a heartbeart.

        Attachments

        1. h5455.01.patch
          2 kB
          Arpit Agarwal

          Issue Links

            Activity

              People

              • Assignee:
                arp Arpit Agarwal
                Reporter:
                arp Arpit Agarwal
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: