hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei-Chiu Chuang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-11018) Incorrect check and message in FsDatasetImpl#invalidate
Date Fri, 14 Oct 2016 23:00:23 GMT
Wei-Chiu Chuang created HDFS-11018:

             Summary: Incorrect check and message in FsDatasetImpl#invalidate
                 Key: HDFS-11018
                 URL: https://issues.apache.org/jira/browse/HDFS-11018
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: datanode
            Reporter: Wei-Chiu Chuang

The following error check and message is incorrect, because {{info}} is null if (1) the block
id does not exist in ReplicaMap or (2) the generation stamp of block does not match the replica
entry in ReplicaMap.

       final ReplicaInfo info = volumeMap.get(bpid, invalidBlks[i]);
        if (info == null) {
          // It is okay if the block is not found -- it may be deleted earlier.
          LOG.info("Failed to delete replica " + invalidBlks[i]
              + ": ReplicaInfo not found.");
        if (info.getGenerationStamp() != invalidBlks[i].getGenerationStamp()) {
          errors.add("Failed to delete replica " + invalidBlks[i]
              + ": GenerationStamp not matched, info=" + info);

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org

View raw message