Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-11494

Log message when DN is not selected for block replication

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha2
    • Fix Version/s: 2.9.0, 3.0.0-alpha4
    • Component/s: None
    • Labels:
      None

      Description

      In HDFS-8946, a important message was removed.

      if (requiredSize > remaining - scheduledSize) {
            logNodeIsNotChosen(storage, "the node does not have enough "
                + storage.getStorageType() + " space"
                + " (required=" + requiredSize
                + ", scheduled=" + scheduledSize
                + ", remaining=" + remaining + ")");
            return false;
          }
      

      This log is important since it can tell us why DN is not selected for block replication. And it will be good for us to debug issues.

        Attachments

        1. HDFS-11494.002.patch
          0.9 kB
          Yiqun Lin
        2. HDFS-11494.001.patch
          0.9 kB
          Yiqun Lin

          Issue Links

            Activity

              People

              • Assignee:
                linyiqun Yiqun Lin
                Reporter:
                linyiqun Yiqun Lin
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: