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

ASF GitHub Bot commented on HADOOP-18874:
-----------------------------------------

anujmodi2021 commented on code in PR #6004:
URL: https://github.com/apache/hadoop/pull/6004#discussion_r1383581822


##########
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAbfsRestOperationException.java:
##########
@@ -76,16 +78,17 @@ public void testAbfsRestOperationExceptionFormat() throws 
IOException {
       String[] errorFields = errorMessage.split(",");
       Assertions.assertThat(errorFields)
           .describedAs("fields in exception of %s", ex)
-          .hasSize(6);
+          .hasSize(7);
       // Check status message, status code, HTTP Request Type and URL.
       Assert.assertEquals("Operation failed: \"The specified path does not 
exist.\"", errorFields[0].trim());
       Assert.assertEquals("404", errorFields[1].trim());
       Assert.assertEquals("GET", errorFields[2].trim());
       Assert.assertTrue(errorFields[3].trim().startsWith("http"));
+      Assert.assertTrue(errorFields[4].trim().startsWith("rId:"));

Review Comment:
   Taken





> ABFS: Adding Server returned request id in Exception method thrown to caller.
> -----------------------------------------------------------------------------
>
>                 Key: HADOOP-18874
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18874
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/azure
>            Reporter: Anuj Modi
>            Assignee: Anuj Modi
>            Priority: Major
>              Labels: pull-request-available
>
> Each request made to Azure server has its unique ActivityId (rid) which is 
> returned in response of the request whether is succeed or fails.
> When a HDFS call fails due to an error from Azure service, An 
> ABFSRestOperationException is throws to the caller. This task is to add a 
> server returned activity id (rid) in the exception message which can be used 
> to investigate the failure on service side.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to