Uploaded image for project: 'Apache RocketMQ'
  1. Apache RocketMQ
  2. ROCKETMQ-77

[TEST] org.apache.rocketmq.tools.* have NPEs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.1.0-incubating
    • rocketmq-tools
    • 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.

      Attachments

        Activity

          People

            shroman Roman Shtykh
            shroman Roman Shtykh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: