You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Matt Foley (JIRA)" <ji...@apache.org> on 2011/06/10 19:43:58 UTC

[jira] [Created] (HDFS-2061) two minor bugs in BlockManager block report processing

two minor bugs in BlockManager block report processing
------------------------------------------------------

                 Key: HDFS-2061
                 URL: https://issues.apache.org/jira/browse/HDFS-2061
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: name-node
    Affects Versions: 0.23.0
            Reporter: Matt Foley
            Assignee: Matt Foley
            Priority: Minor
             Fix For: 0.23.0


In a recent review of HDFS-1295 patches (speedup for block report processing), found two very minor bugs in BlockManager, as documented in following comments.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HDFS-2061) two minor bugs in BlockManager block report processing

Posted by "Suresh Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13047488#comment-13047488 ] 

Suresh Srinivas commented on HDFS-2061:
---------------------------------------

Nice catch. +1 for the change.

> two minor bugs in BlockManager block report processing
> ------------------------------------------------------
>
>                 Key: HDFS-2061
>                 URL: https://issues.apache.org/jira/browse/HDFS-2061
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.23.0
>            Reporter: Matt Foley
>            Assignee: Matt Foley
>            Priority: Minor
>             Fix For: 0.23.0
>
>         Attachments: HDFS-2061.patch
>
>
> In a recent review of HDFS-1295 patches (speedup for block report processing), found two very minor bugs in BlockManager, as documented in following comments.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HDFS-2061) two minor bugs in BlockManager block report processing

Posted by "Matt Foley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Foley updated HDFS-2061:
-----------------------------

    Status: Patch Available  (was: Open)

> two minor bugs in BlockManager block report processing
> ------------------------------------------------------
>
>                 Key: HDFS-2061
>                 URL: https://issues.apache.org/jira/browse/HDFS-2061
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.23.0
>            Reporter: Matt Foley
>            Assignee: Matt Foley
>            Priority: Minor
>             Fix For: 0.23.0
>
>         Attachments: HDFS-2061.patch
>
>
> In a recent review of HDFS-1295 patches (speedup for block report processing), found two very minor bugs in BlockManager, as documented in following comments.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HDFS-2061) two minor bugs in BlockManager block report processing

Posted by "Matt Foley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Foley updated HDFS-2061:
-----------------------------

    Attachment: HDFS-2061.patch

addStoredBlock() is not currently robust against future sub-classing of BlockInfoUnderConstruction:
{code}
//currently uses
if (block.getClass() == BlockInfoUnderConstruction.class) {...}
//should be
if (block instanceof BlockInfoUnderConstruction) {...}
{code}

processReportedBlock() had a left-over "this" in an assert message, from being moved from DatanodeDescriptor to BlockManager:
{code}
//currently uses
... + " in recentInvalidatesSet should not appear in DN " + this;
//should be
... + " in recentInvalidatesSet should not appear in DN " + dn;
{code}


> two minor bugs in BlockManager block report processing
> ------------------------------------------------------
>
>                 Key: HDFS-2061
>                 URL: https://issues.apache.org/jira/browse/HDFS-2061
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.23.0
>            Reporter: Matt Foley
>            Assignee: Matt Foley
>            Priority: Minor
>             Fix For: 0.23.0
>
>         Attachments: HDFS-2061.patch
>
>
> In a recent review of HDFS-1295 patches (speedup for block report processing), found two very minor bugs in BlockManager, as documented in following comments.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HDFS-2061) two minor bugs in BlockManager block report processing

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13047385#comment-13047385 ] 

Hadoop QA commented on HDFS-2061:
---------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12482084/HDFS-2061.patch
  against trunk revision 1134397.

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    -1 core tests.  The patch failed these core unit tests:
                  org.apache.hadoop.cli.TestHDFSCLI

    +1 contrib tests.  The patch passed contrib unit tests.

    +1 system test framework.  The patch passed system test framework compile.

Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/766//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-HDFS-Build/766//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/766//console

This message is automatically generated.

> two minor bugs in BlockManager block report processing
> ------------------------------------------------------
>
>                 Key: HDFS-2061
>                 URL: https://issues.apache.org/jira/browse/HDFS-2061
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.23.0
>            Reporter: Matt Foley
>            Assignee: Matt Foley
>            Priority: Minor
>             Fix For: 0.23.0
>
>         Attachments: HDFS-2061.patch
>
>
> In a recent review of HDFS-1295 patches (speedup for block report processing), found two very minor bugs in BlockManager, as documented in following comments.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HDFS-2061) two minor bugs in BlockManager block report processing

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13050106#comment-13050106 ] 

Hudson commented on HDFS-2061:
------------------------------

Integrated in Hadoop-Hdfs-trunk-Commit #746 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/746/])
    

> two minor bugs in BlockManager block report processing
> ------------------------------------------------------
>
>                 Key: HDFS-2061
>                 URL: https://issues.apache.org/jira/browse/HDFS-2061
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.23.0
>            Reporter: Matt Foley
>            Assignee: Matt Foley
>            Priority: Minor
>             Fix For: 0.23.0
>
>         Attachments: HDFS-2061.patch
>
>
> In a recent review of HDFS-1295 patches (speedup for block report processing), found two very minor bugs in BlockManager, as documented in following comments.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HDFS-2061) two minor bugs in BlockManager block report processing

Posted by "Matt Foley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Foley updated HDFS-2061:
-----------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]
          Status: Resolved  (was: Patch Available)

Committed to trunk.  Thanks for the review, Suresh!

Note: not needed in yahoo-merge branch.

> two minor bugs in BlockManager block report processing
> ------------------------------------------------------
>
>                 Key: HDFS-2061
>                 URL: https://issues.apache.org/jira/browse/HDFS-2061
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.23.0
>            Reporter: Matt Foley
>            Assignee: Matt Foley
>            Priority: Minor
>             Fix For: 0.23.0
>
>         Attachments: HDFS-2061.patch
>
>
> In a recent review of HDFS-1295 patches (speedup for block report processing), found two very minor bugs in BlockManager, as documented in following comments.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HDFS-2061) two minor bugs in BlockManager block report processing

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051029#comment-13051029 ] 

Hudson commented on HDFS-2061:
------------------------------

Integrated in Hadoop-Hdfs-trunk #699 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/699/])
    

> two minor bugs in BlockManager block report processing
> ------------------------------------------------------
>
>                 Key: HDFS-2061
>                 URL: https://issues.apache.org/jira/browse/HDFS-2061
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.23.0
>            Reporter: Matt Foley
>            Assignee: Matt Foley
>            Priority: Minor
>             Fix For: 0.23.0
>
>         Attachments: HDFS-2061.patch
>
>
> In a recent review of HDFS-1295 patches (speedup for block report processing), found two very minor bugs in BlockManager, as documented in following comments.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira