Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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.