[
https://issues.apache.org/jira/browse/MAPREDUCE-4927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13547222#comment-13547222
]
Jason Lowe commented on MAPREDUCE-4927:
---------------------------------------
The NPE is occurring in this code snippet in
SingleCounterBlock.populateMembers() because entry.getValue().getCounters()
returns null:
{code}
CounterGroup group = entry.getValue().getCounters()
.getGroup($(COUNTER_GROUP));
if(group != null) {
{code}
Looks like the code needs to check for the lack of Counters from a task, or
CompletedTask needs to make sure that getCounters() at least returns an empty
set of counters for getCounters(). The latter is what TaskImpl does when the
AM is running.
> Historyserver 500 error due to NPE when accessing specific counters page for
> failed job
> ---------------------------------------------------------------------------------------
>
> Key: MAPREDUCE-4927
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-4927
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: jobhistoryserver
> Affects Versions: 2.0.3-alpha, 0.23.6
> Reporter: Jason Lowe
>
> Went to the historyserver page for a job that failed and examined the
> counters page. When I clicked on a specific counter, the historyserver
> returned a 500 error. The historyserver logs showed it encountered an NPE
> error, full traceback to follow.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira