dzcxzl created HDFS-18025:
-----------------------------

             Summary: FsDatasetImpl#getStoredBlock should return null for 
non-existent replica
                 Key: HDFS-18025
                 URL: https://issues.apache.org/jira/browse/HDFS-18025
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs
            Reporter: dzcxzl


After HDFS-17496, getStoredBlock calls getReplicaInfo() to resolve the DIR 
lock, which throws ReplicaNotFoundException for a missing replica instead of 
returning null.

VolumeScanner#scanBlock relies on the null return. A block deleted during 
scanning is now logged as WARN "I/O error while finding block" instead of INFO 
"not found in the VolumeMap", and the WARN omits the exception.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to