You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Przemyslaw Pretki (JIRA)" <ji...@apache.org> on 2013/03/24 12:07:15 UTC
[jira] [Created] (YARN-505) NPE at
AsyncDispatcher$GenericEventHandler
Przemyslaw Pretki created YARN-505:
--------------------------------------
Summary: NPE at AsyncDispatcher$GenericEventHandler
Key: YARN-505
URL: https://issues.apache.org/jira/browse/YARN-505
Project: Hadoop YARN
Issue Type: Improvement
Components: resourcemanager
Affects Versions: 3.0.0
Reporter: Przemyslaw Pretki
Priority: Minor
Steps to reproduce:
{code}
@Test
public void testAsyncDispatcher()
{
AsyncDispatcher dispatcher = new AsyncDispatcher();
EventHandler handler = dispatcher.getEventHandler();
handler.handle(null);
}
{code}
Moreover, event taken from *BlockingQueue* will never be *null*, so that it seems that the following condition is not necessary (AsyncDispatcher.createThread() method):
{code}
if (event != null) {
dispatch(event);
}
{code}
--
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