[jira] [Updated] (HADOOP-14680) Azure: IndexOutOfBoundsException in BlockBlobInputStream
[ https://issues.apache.org/jira/browse/HADOOP-14680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Loughran updated HADOOP-14680: Resolution: Fixed Fix Version/s: 2.9.0 Status: Resolved (was: Patch Available) > 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 > Fix For: 2.9.0, 3.0.0-beta1 > > Attachments: HADOOP-14680-001.patch, HADOOP-14680-branch-2.01.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: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Updated] (HADOOP-14680) Azure: IndexOutOfBoundsException in BlockBlobInputStream
[ https://issues.apache.org/jira/browse/HADOOP-14680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jitendra Nath Pandey updated HADOOP-14680: -- Fix Version/s: 3.0.0-beta1 > 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 > Fix For: 3.0.0-beta1 > > Attachments: HADOOP-14680-001.patch, HADOOP-14680-branch-2.01.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: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Updated] (HADOOP-14680) Azure: IndexOutOfBoundsException in BlockBlobInputStream
[ https://issues.apache.org/jira/browse/HADOOP-14680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jitendra Nath Pandey updated HADOOP-14680: -- Attachment: HADOOP-14680-branch-2.01.patch Attaching branch-2 patch for jenkins. > 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, HADOOP-14680-branch-2.01.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: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Updated] (HADOOP-14680) Azure: IndexOutOfBoundsException in BlockBlobInputStream
[ https://issues.apache.org/jira/browse/HADOOP-14680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Marquardt updated HADOOP-14680: -- Assignee: Thomas Marquardt Release Note: Bug fix to Azure Filesystem related to HADOOP-14535 Target Version/s: 2.9.0, 3.0.0-beta1 Status: Patch Available (was: Open) > 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: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Updated] (HADOOP-14680) Azure: IndexOutOfBoundsException in BlockBlobInputStream
[ https://issues.apache.org/jira/browse/HADOOP-14680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Marquardt updated HADOOP-14680: -- Attachment: HADOOP-14680-001.patch Attaching HADOOP-14680-001.patch. This fixes the issure where {{MemoryOutputStream.capacity()}} returns the wrong value. The function was supposed to return the total capacity of the stream and it now does that. A new test case was added. The new test case fails without the fix. > 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 > 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: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org