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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.0-incubating
    • Component/s: rocketmq-tools
    • Labels:
      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

            • Assignee:
              roman_s Roman Shtykh
              Reporter:
              roman_s Roman Shtykh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: