[ https://issues.apache.org/jira/browse/HADOOP-19556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17947797#comment-17947797 ]
Ahmar Suhail commented on HADOOP-19556: --------------------------------------- [~ste...@apache.org] what do you think? when offset is negative, is it ok to throw IllegalArgumentException? > S3A Analaytics-Accelerator: > ITestS3AContractOpen.testInputStreamReadNegativePosition() failing > ---------------------------------------------------------------------------------------------- > > Key: HADOOP-19556 > URL: https://issues.apache.org/jira/browse/HADOOP-19556 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/s3 > Affects Versions: 3.4.2 > Reporter: Ahmar Suhail > Priority: Blocker > Fix For: 3.4.2 > > > New test added in [https://github.com/apache/hadoop/pull/7367,] > expects an IndexOutOfBoundsException to be thrown, when offset is negative. > > AAL throws IllegalArgumentException. For len, the PR says it's ok to throw > either IllegalArgumentException or IndexOutOfBoundsException, so should the > same thing happen of offset? -- 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