hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelvin Chu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-12107) FsDatasetImpl#removeVolumes floods the logs when removing the volume
Date Tue, 01 Aug 2017 23:38:00 GMT

     [ https://issues.apache.org/jira/browse/HDFS-12107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kelvin Chu updated HDFS-12107:
------------------------------
    Affects Version/s: 3.0.0-alpha4
               Status: Patch Available  (was: Open)

> 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
>    Affects Versions: 3.0.0-alpha4
>            Reporter: Haohui Mai
>            Assignee: Kelvin Chu
>         Attachments: HDFS-12107.001.patch
>
>
> 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message