hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sreekanth Ramakrishnan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-6243) NPE in handling deprecated configuration keys.
Date Tue, 08 Sep 2009 09:04:57 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-6243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sreekanth Ramakrishnan updated HADOOP-6243:
-------------------------------------------

    Attachment: HADOOP-6243-1.patch

The patch fixes the {{NullPointerException}} which was thrown when {{Configuration.get()}}
method is invoked.

The {{Configuration.processDeprecation()}} used to load the classes which were present as
part of {{hadoop.conf.extra.classes}} key.

If one of those classes have a static block which does an {{Configuration.addResource()}},
the property map maintained by the Configuration is set to null causing the {{NullPointerException}}

After, offline discussion with Hemanth and Chaitanya with regards to correct fix, a new JIRA
would be opened in order to discuss how best to expose the usage of HADOOP-6105 to consumers,
and this JIRA would provide a short term fix in which consumers are expected to change the
{{static}} block in {{Configuration}} class for using HADOOP-6105

> NPE in handling deprecated configuration keys.
> ----------------------------------------------
>
>                 Key: HADOOP-6243
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6243
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: conf
>    Affects Versions: 0.21.0
>            Reporter: Konstantin Shvachko
>            Assignee: V.V.Chaitanya Krishna
>            Priority: Blocker
>             Fix For: 0.21.0
>
>         Attachments: HADOOP-6243-1.patch
>
>
> I run TestFileCreation in Eclipse and get a NullPointerException. Debugging shows that
{{Configuration.populateDeprecationMapping()}} sets {{Configuration.properties}} to null.
> This code was introduced in HADOOP-6105.

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