[ 
https://issues.apache.org/jira/browse/HDFS-13985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16679797#comment-16679797
 ] 

Adam Antal commented on HDFS-13985:
-----------------------------------

Thanks for the comment [~zvenczel].

I looked at the use-cases where {{public ReplicaNotFoundException(String msg)}} 
is used, and I agree that it may be a little bit too much in places where a 
reasonable error message is provided to the exception. The jira aimed to have a 
clearer message where we have less information which is happen to be the usages 
of the {{public ReplicaNotFoundException(ExtendedBlock b)}} constructor, where 
we have no further message added.

Incorporated to [^HDFS-13985.002.patch].

> Clearer error message for ReplicaNotFoundException
> --------------------------------------------------
>
>                 Key: HDFS-13985
>                 URL: https://issues.apache.org/jira/browse/HDFS-13985
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs
>            Reporter: Adam Antal
>            Assignee: Adam Antal
>            Priority: Major
>         Attachments: HDFS-13985.001.patch, HDFS-13985.002.patch
>
>
> The issue is that we came across a ReplicaNotFoundException in a bug report, 
> the most informative thing we could get is "Replica not found for 
> [ExtendedBlock]". If someone tries to investigate cases including 
> ReplicaNotFoundExceptions should review diagnostic bundles, dig through logs, 
> but as a starting point enhancing the exception message would boost this 
> process, and be beneficial in the long run.
> More concretely, it would be helpful if any of the following information was 
> displayed along with the exception: file's name, replication factor or block 
> location.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to