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

DataStreamer DataNode exclusion log message should be warning

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      When adding a DN to excludedNodes, it should log a warning message instead of info.

            success = createBlockOutputStream(nodes, storageTypes, 0L, false);
      
            if (!success) {
              LOG.info("Abandoning " + block);
              dfsClient.namenode.abandonBlock(block, stat.getFileId(), src,
                  dfsClient.clientName);
              block = null;
              final DatanodeInfo badNode = nodes[errorState.getBadNodeIndex()];
              LOG.info("Excluding datanode " + badNode);
              excludedNodes.put(badNode, badNode);
            }
      

      Attachments

        1. HDFS-10381.001.patch
          2 kB
          John Zhuge

        Activity

          People

            jzhuge John Zhuge
            jzhuge John Zhuge
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: