You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@rocketmq.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/02/06 08:19:41 UTC

[jira] [Commented] (ROCKETMQ-77) [TEST] org.apache.rocketmq.tools.* have NPEs

    [ https://issues.apache.org/jira/browse/ROCKETMQ-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15853665#comment-15853665 ] 

ASF subversion and git services commented on ROCKETMQ-77:
---------------------------------------------------------

Commit 671e9a5537d941721e76efb18114e8054c9cc936 in incubator-rocketmq's branch refs/heads/master from stevenschew
[ https://git-wip-us.apache.org/repos/asf?p=incubator-rocketmq.git;h=671e9a5 ]

[ROCKETMQ-77] [TEST] org.apache.rocketmq.tools.* have NPEs


> [TEST] org.apache.rocketmq.tools.* have NPEs
> --------------------------------------------
>
>                 Key: ROCKETMQ-77
>                 URL: https://issues.apache.org/jira/browse/ROCKETMQ-77
>             Project: Apache RocketMQ
>          Issue Type: Bug
>          Components: rocketmq-tools
>            Reporter: Roman Shtykh
>            Assignee: vongosling
>
> Run {{mvn test}} and see {{org.apache.rocketmq.tools.*}} having NPEs, because no nameserver is started.
> This can be fixed by, for instance, having {{IntegrationTestBase}} staring a nameserver when tests are being run.
> In general, I would throw an exception whenever obtaining a nameserver is failed, rather than returning {{null}}, because a connection to the nameserver is a must to do any useful work in RocketMQ.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)