[
https://issues.apache.org/jira/browse/HADOOP-18501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17629789#comment-17629789
]
ASF GitHub Bot commented on HADOOP-18501:
-----------------------------------------
anmolanmol1234 commented on code in PR #5109:
URL: https://github.com/apache/hadoop/pull/5109#discussion_r1015354894
##########
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestPartialRead.java:
##########
@@ -140,10 +138,10 @@ public int getCallCount() {
FSDataInputStream inputStream = fs.open(testPath);
byte[] buffer = new byte[fileSize];
inputStream.read(0, buffer, 0, fileSize);
-
- Assert.assertEquals(4, mockHttpOperationTestIntercept.getCallCount());
- Assert.assertEquals(4,
- analyzerToBeAsserted.getFailedInstances().intValue());
+ Assertions.assertThat(mockHttpOperationTestIntercept.getCallCount())
Review Comment:
Add an error message to be shown if assert fails
> [ABFS]: Partial Read should add to throttling metric
> ----------------------------------------------------
>
> Key: HADOOP-18501
> URL: https://issues.apache.org/jira/browse/HADOOP-18501
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs/azure
> Affects Versions: 3.3.4
> Reporter: Pranav Saxena
> Assignee: Pranav Saxena
> Priority: Minor
> Labels: pull-request-available
>
> Error Description:
> For partial read (due to account backend throttling), the ABFS driver retry
> but doesn't add up in the throttling metrics.
> In case of partial read with connection-reset exception, ABFS driver retry
> for the full request and doesn't add up in throttling metrics.
> Mitigation:
> In case of partial read, Abfs Driver should retry for the remaining bytes and
> it should be added in throttling metrics.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]