hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghu Angadi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-1359) Variable dereferenced then later checked for null
Date Tue, 15 May 2007 21:29:17 GMT

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

Raghu Angadi commented on HADOOP-1359:
--------------------------------------

I don't think null check is even required. LocatedBlock does not expect 'locs' to be null.
For e.g. LocatedBlock.write() does not check for null.



> Variable dereferenced then later checked for null
> -------------------------------------------------
>
>                 Key: HADOOP-1359
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1359
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.12.3
>            Reporter: Nigel Daley
>         Assigned To: Hairong Kuang
>            Priority: Blocker
>             Fix For: 0.13.0
>
>         Attachments: fsck.patch
>
>
> NamenodeFsck.java
> line 174 dereferences the variable 'locs'
> line 191 checks if 'locs' is null

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message