You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Da Zhou (JIRA)" <ji...@apache.org> on 2018/10/02 19:51:00 UTC

[jira] [Commented] (HADOOP-15812) ABFS: Improve AbfsRestOperationException format to ensure full msg can be displayed on console

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

Da Zhou commented on HADOOP-15812:
----------------------------------

Reorder the msg displayed in the first line.
Previously the fist line of error msg only contains :
\{HTTP_METHOD\} \{REQUEST_URL\},
as a result, a failed "ls" hadoop cmd will have a error msg like this :
{noformat}
ls: HEAD https://XXXX
{noformat}

I did a minor change to include the HTTP status code in the first line, so that user can know the possible reason why it failed. If user need more information, they need to go the log file and check.
I didn't include the other information : "statusDescription", "storageErrorcode" and "storageErrorMessage" since that would make the msg too long for one line, and HTTP status code should be good enough.

So after the change the failed cmd error msg is :
{noformat}
ls: HEAD StatusCode=403 http://XXX
{noformat}

Tests passed:.

Namespace not enabled account, using shared Key
Tests run: 36, Failures: 0, Errors: 0, Skipped: 0
Tests run: 306, Failures: 0, Errors: 0, Skipped: 198
Tests run: 165, Failures: 0, Errors: 0, Skipped: 15

Namespace enabled account, using Oauth
Tests run: 36, Failures: 0, Errors: 0, Skipped: 0
Tests run: 306, Failures: 0, Errors: 0, Skipped: 35
Tests run: 165, Failures: 0, Errors: 0, Skipped: 21
 

> ABFS: Improve AbfsRestOperationException format to ensure full msg can be displayed on console
> ----------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-15812
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15812
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/azure
>    Affects Versions: 3.2.0
>            Reporter: Da Zhou
>            Assignee: Da Zhou
>            Priority: Major
>         Attachments: HADOOP-15812-001.patch
>
>
> AbfsRestOperationException msg contains multiple "\n" for displaying nicely, 
> however, hadoop cmd class  split the error msg by "\n" and display the first string in console, which lead to the incomplete error msg shown in console.
> Hence we need to improve this format.



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

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