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 Hemanth Yamijala <yh...@gmail.com> on 2012/09/04 13:34:55 UTC
Unused API in LocalDirAllocator
Hi,
Stumbled on the fact that LocalDirAllocator.ifExists() is not used
anywhere. The previous usage of this API was in the IsolationRunner
that was removed in MAPREDUCE-2606.
This API doesn't call the confChanged method and hence there is an
uninitialised variable that causes a NullPointerException. So, either
we can fix that, or remove the API if it's not required. This is also
one of the reasons why the IsolationRunner was broken in 1.0.
Thoughts ?
Thanks
hemanth
Re: Unused API in LocalDirAllocator
Posted by Hemanth Yamijala <yh...@gmail.com>.
Thanks. Filed https://issues.apache.org/jira/browse/HADOOP-8765.
Hemanth
On Tue, Sep 4, 2012 at 6:22 PM, Robert Evans <ev...@yahoo-inc.com> wrote:
> I don't think it really matters that much. The API is limited Private and
> unstable, so I would say just remove it, but fixing it is fine too.
> Either way file a JIRA on it.
>
> --Bobby
>
> On 9/4/12 6:34 AM, "Hemanth Yamijala" <yh...@gmail.com> wrote:
>
>>Hi,
>>
>>Stumbled on the fact that LocalDirAllocator.ifExists() is not used
>>anywhere. The previous usage of this API was in the IsolationRunner
>>that was removed in MAPREDUCE-2606.
>>
>>This API doesn't call the confChanged method and hence there is an
>>uninitialised variable that causes a NullPointerException. So, either
>>we can fix that, or remove the API if it's not required. This is also
>>one of the reasons why the IsolationRunner was broken in 1.0.
>>
>>Thoughts ?
>>
>>Thanks
>>hemanth
>
Re: Unused API in LocalDirAllocator
Posted by Robert Evans <ev...@yahoo-inc.com>.
I don't think it really matters that much. The API is limited Private and
unstable, so I would say just remove it, but fixing it is fine too.
Either way file a JIRA on it.
--Bobby
On 9/4/12 6:34 AM, "Hemanth Yamijala" <yh...@gmail.com> wrote:
>Hi,
>
>Stumbled on the fact that LocalDirAllocator.ifExists() is not used
>anywhere. The previous usage of this API was in the IsolationRunner
>that was removed in MAPREDUCE-2606.
>
>This API doesn't call the confChanged method and hence there is an
>uninitialised variable that causes a NullPointerException. So, either
>we can fix that, or remove the API if it's not required. This is also
>one of the reasons why the IsolationRunner was broken in 1.0.
>
>Thoughts ?
>
>Thanks
>hemanth