hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh Balamohan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-14680) Azure: IndexOutOfBoundsException in BlockBlobInputStream
Date Mon, 24 Jul 2017 01:09:00 GMT
Rajesh Balamohan created HADOOP-14680:

             Summary: 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
            Priority: Minor


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

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

View raw message