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

Antal Mihalyi commented on HADOOP-15599:
----------------------------------------

Hi [~jojochuang] , right, we can improve the log further with this. I think we 
should only log if we failed to parse the  "Current" format, and fallback for 
parsing the old format (I suppose it is a rare occasion). We can extend the 
present "unexpected" log,stating that we failed to parse both format, so we do 
not expect the directory in the .trash root. What about that solution? 

> Improve TrashPolicyDefault error message
> ----------------------------------------
>
>                 Key: HADOOP-15599
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15599
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Wei-Chiu Chuang
>            Assignee: Antal Mihalyi
>            Priority: Minor
>         Attachments: HADOOP-15599.001.patch, image-2018-08-21-18-44-07-075.png
>
>
> Found the following warning message:
> {noformat}
> 2018-07-09 06:00:00,486 WARN org.apache.hadoop.fs.TrashPolicyDefault: 
> Unexpected item in trash: /user/hue/.Trash/hue. Ignoring.{noformat}
> However, it's not clear what file in the trash directory that was unexpected. 
> Relevant code:
> {code:java|title=TrashPolicyDefault#deleteCheckpoint}
> try {
>   time = getTimeFromCheckpoint(name);
> } catch (ParseException e) {
>   LOG.warn("Unexpected item in trash: "+dir+". Ignoring.");
>   continue;
> }
> {code}
> File this Jira to get the file name recorded. 



--
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