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

Thomas Marquardt commented on HADOOP-14680:
-------------------------------------------

All WASB tests are passing with the HADOOP-14680-001.patch except one unrelated 
test failure:

    Tests run: 762, Failures: 1, Errors: 0, Skipped: 70

    Failed tests: TestWasbRemoteCallHelper.testWhenOneInstanceIsDown:359

The test failure is unrelated to the HADOOP-14680-001.patch.  It may be related 
to HADOOP-14642 (commit #2843c6)

> Azure: IndexOutOfBoundsException in BlockBlobInputStream
> --------------------------------------------------------
>
>                 Key: HADOOP-14680
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14680
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs/azure
>            Reporter: Rajesh Balamohan
>            Assignee: Thomas Marquardt
>            Priority: Minor
>         Attachments: HADOOP-14680-001.patch
>
>
> https://github.com/apache/hadoop/blob/trunk/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/BlockBlobInputStream.java#L361
> On certain conditions, BlockBlobInputStream can throw 
> IndexOutOfBoundsException. Following is an example
> {{length:297898, offset:4194304, buf.len:4492202, writePos:4194304}} : 
> In this case, {{MemoryOutputStream::capacity()}} would end up returning 
> negative value and can cause {{IndexOutOfBoundsException}}
> It should be {{return buffer.length - offset;}} to determine current capacity.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to