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

Hudson commented on HADOOP-15109:
---------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #13397 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/13397/])
HADOOP-15109. TestDFSIO -read -random doesn't work on file sized 4GB. (cliang: 
rev c7a4dda3c5571e64c216810f8eb1a824c9b8f6f8)
* (edit) 
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/fs/TestDFSIO.java


> TestDFSIO -read -random doesn't work on file sized 4GB
> ------------------------------------------------------
>
>                 Key: HADOOP-15109
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15109
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs, test
>    Affects Versions: 3.0.0-beta1
>            Reporter: zhoutai.zt
>            Assignee: Ajay Kumar
>            Priority: Minor
>             Fix For: 3.1.0
>
>         Attachments: HADOOP-15109.001.patch, HADOOP-15109.002.patch, Screen 
> Shot 2017-12-11 at 3.17.22 PM.png
>
>
> TestDFSIO -read -random throws IllegalArgumentException on 4GB file. The 
> cause is:
> {code:java}
> private long nextOffset(long current) {
>       if(skipSize == 0)
>         return rnd.nextInt((int)(fileSize));
>       if(skipSize > 0)
>         return (current < 0) ? 0 : (current + bufferSize + skipSize);
>       // skipSize < 0
>       return (current < 0) ? Math.max(0, fileSize - bufferSize) :
>                              Math.max(0, current + skipSize);
>     }
>   }
> {code}
> When {color:#d04437}_filesize_{color} exceeds signed int, (int)(filesize) 
> will be negative and cause Random.nextInt throws  IllegalArgumentException("n 
> must be positive").



--
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