Haohui Mai created HDFS-12107:
---------------------------------

             Summary: FsDatasetImpl#removeVolumes floods the logs when removing 
the volume
                 Key: HDFS-12107
                 URL: https://issues.apache.org/jira/browse/HDFS-12107
             Project: Hadoop HDFS
          Issue Type: Bug
            Reporter: Haohui Mai
            Assignee: Haohui Mai


FsDatasetImpl#removeVolumes() prints all block ids on a volume when removing 
it, which floods the log of DN.

{noformat}
for (String bpid : volumeMap.getBlockPoolList()) {
            List<ReplicaInfo> blocks = new ArrayList<>();
            for (Iterator<ReplicaInfo> it =
                  volumeMap.replicas(bpid).iterator(); it.hasNext();) {
              ReplicaInfo block = it.next();
              final StorageLocation blockStorageLocation =
                  block.getVolume().getStorageLocation();
              LOG.info("checking for block " + block.getBlockId() +
                  " with storageLocation " + blockStorageLocation);
              if (blockStorageLocation.equals(sdLocation)) {
                blocks.add(block);
                it.remove();
              }
            }
{noformat}

The logging level should be {{DEBUG}} or {{TRACE}} instead of {{INFO}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to