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

ASF GitHub Bot commented on HDFS-12314:
---------------------------------------

GitHub user dosoft opened a pull request:

    https://github.com/apache/hadoop/pull/265

    HDFS-12314: Fixed typo in the testAddOneNewVolume()

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dosoft/hadoop HDFS-12314

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/hadoop/pull/265.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #265
    
----
commit 9b1ca850de854aacf2b72c24a7989c005824a7b0
Author: Oleg Danilov <[email protected]>
Date:   2017-08-17T05:06:02Z

    HDFS-12314: Fixed typo in the testAddOneNewVolume()

----


> Typo in the TestDataNodeHotSwapVolumes.testAddOneNewVolume()
> ------------------------------------------------------------
>
>                 Key: HDFS-12314
>                 URL: https://issues.apache.org/jira/browse/HDFS-12314
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Oleg Danilov
>            Priority: Trivial
>
> Should be maxNumBlocks-minNumBlocks
> lines 410-414:
> {code:java}
>     for (BlockListAsLongs blockList : blockReports.get(0).values()) {
>       minNumBlocks = Math.min(minNumBlocks, blockList.getNumberOfBlocks());
>       maxNumBlocks = Math.max(maxNumBlocks, blockList.getNumberOfBlocks());
>     }
>     assertTrue(Math.abs(maxNumBlocks - maxNumBlocks) <= 1);
> {code}



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