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

ASF GitHub Bot commented on HADOOP-18505:
-----------------------------------------

FuzzingTeam commented on code in PR #5065:
URL: https://github.com/apache/hadoop/pull/5065#discussion_r1002706193


##########
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/io/erasurecode/rawcoder/TestDecodingValidator.java:
##########
@@ -123,7 +125,12 @@ protected void performTestValidate(int chunkSize) {
     }
 
     // decode
-    backupAndEraseChunks(clonedDataChunks, parityChunks);
+    try {

Review Comment:
   The `backupAndEraseChunks` method would only throw exception if the erased 
data index is out of bound. This is only true for the newly added value set. 
   
   Adding LambdaTestUtils.intercept() fails the tests for other parameterized 
values since LambdaTestUtils.intercept() @throws AssertionError if the 
evaluation call didn't raise an exception.





> ArrayIndexOutOfBoundsException in TestCoderBase.java
> ----------------------------------------------------
>
>                 Key: HADOOP-18505
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18505
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.3.4
>            Reporter: FuzzingTeam
>            Priority: Major
>              Labels: pull-request-available
>
> The code throws an unhandled ArrayIndexOutOfBoundsException in the method 
> _backupAndEraseChunks_ of _TestCoderBase_ class when it tries to access the 
> out of bound indexes in _dataChunks_ and _parityChunks_ array.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to