You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Bryan Pendleton (JIRA)" <ji...@apache.org> on 2006/03/08 01:51:40 UTC

[jira] Created: (HADOOP-69) Unchecked lookup value causes NPE in FSNamesystemgetDatanodeHints

Unchecked lookup value causes NPE in FSNamesystemgetDatanodeHints
-----------------------------------------------------------------

         Key: HADOOP-69
         URL: http://issues.apache.org/jira/browse/HADOOP-69
     Project: Hadoop
        Type: Bug
  Components: dfs  
    Reporter: Bryan Pendleton




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (HADOOP-69) Unchecked lookup value causes NPE in FSNamesystemgetDatanodeHints

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-69?page=all ]
     
Doug Cutting resolved HADOOP-69:
--------------------------------

    Fix Version: 0.2
     Resolution: Fixed

Committed.  Sorry, this fell off my radar.  Thanks for the reminder.  I fixed something related in:

http://svn.apache.org/viewcvs.cgi/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java?rev=382545&r1=377317&r2=382545

so I hadn't seen this problem.


> Unchecked lookup value causes NPE in FSNamesystemgetDatanodeHints
> -----------------------------------------------------------------
>
>          Key: HADOOP-69
>          URL: http://issues.apache.org/jira/browse/HADOOP-69
>      Project: Hadoop
>         Type: Bug

>   Components: dfs
>     Reporter: Bryan Pendleton
>      Fix For: 0.2
>  Attachments: patch.txt
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (HADOOP-69) Unchecked lookup value causes NPE in FSNamesystemgetDatanodeHints

Posted by "Bryan Pendleton (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-69?page=all ]

Bryan Pendleton updated HADOOP-69:
----------------------------------

    Attachment: patch.txt

Check for null value after looking up blocks (ie, no known node has the block). Should prevent the NPE. The correct value (no hints for unfound blocks) is returned.

> Unchecked lookup value causes NPE in FSNamesystemgetDatanodeHints
> -----------------------------------------------------------------
>
>          Key: HADOOP-69
>          URL: http://issues.apache.org/jira/browse/HADOOP-69
>      Project: Hadoop
>         Type: Bug
>   Components: dfs
>     Reporter: Bryan Pendleton
>  Attachments: patch.txt
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (HADOOP-69) Unchecked lookup value causes NPE in FSNamesystemgetDatanodeHints

Posted by "Bryan Pendleton (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-69?page=comments#action_12375403 ] 

Bryan Pendleton commented on HADOOP-69:
---------------------------------------

Bump: Any reason this patch hasn't been applied? It looks like it's still possible for non-found blocks to return null, causing an NPE in this function, rather than a more graceful recovery.

> Unchecked lookup value causes NPE in FSNamesystemgetDatanodeHints
> -----------------------------------------------------------------
>
>          Key: HADOOP-69
>          URL: http://issues.apache.org/jira/browse/HADOOP-69
>      Project: Hadoop
>         Type: Bug

>   Components: dfs
>     Reporter: Bryan Pendleton
>  Attachments: patch.txt
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira