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

wenxin he commented on HADOOP-14508:
------------------------------------

hi [~shv], sorry to disturb you.
Would you mind reviewing this patch?

When I use TestDFSIO to benchmark hdfs, I found using -seq options can let 
TestDFSIO writing files to hdfs straightly without mr. But I got a NPE when 
using -seq.

I found TestDFSIO#sequentialTest was broken when we refactoring TestDFSIO, so I 
try to fix this issue.

Now, Hadoop QA passed. 
I also tested several use cases below. 

So, would you mind reviewing this? Thanks for you comments.

{code}
hadoop jar hadoop-mapreduce-client-jobclient-3.0.0-alpha4-SNAPSHOT-tests.jar 
TestDFSIO -write -seq -size 1GB
hadoop jar hadoop-mapreduce-client-jobclient-3.0.0-alpha4-SNAPSHOT-tests.jar 
TestDFSIO -read -seq -size 1GB
hadoop jar hadoop-mapreduce-client-jobclient-3.0.0-alpha4-SNAPSHOT-tests.jar 
TestDFSIO -read -seq -random -size 1GB
hadoop jar hadoop-mapreduce-client-jobclient-3.0.0-alpha4-SNAPSHOT-tests.jar 
TestDFSIO -read -seq -skipSize 1024 -size 1GB
hadoop jar hadoop-mapreduce-client-jobclient-3.0.0-alpha4-SNAPSHOT-tests.jar 
TestDFSIO -append -seq -size 1GB
hadoop jar hadoop-mapreduce-client-jobclient-3.0.0-alpha4-SNAPSHOT-tests.jar 
TestDFSIO -truncate -seq -size 1GB
{code}


> TestDFSIO throws NPE when set -sequential argument.
> ---------------------------------------------------
>
>                 Key: HADOOP-14508
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14508
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.0.0-alpha4
>            Reporter: wenxin he
>            Assignee: wenxin he
>         Attachments: HADOOP-14508.002.patch
>
>
> Benchmark tool TestDFSIO throws NPE when set {{-sequential}} due to 
> uninitialized {{ioer.stream}} in {{TestDFSIO#sequentialTest}}.
> More descriptions, stack traces see comments.



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

Reply via email to