codelipenghui commented on code in PR #15633:
URL: https://github.com/apache/pulsar/pull/15633#discussion_r876663006


##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/loadbalance/AdvertisedListenersTest.java:
##########
@@ -112,6 +112,7 @@ public void testLookup() throws Exception {
         // Verify we can get the correct HTTP redirect to the advertised 
listener
         for (PulsarAdmin a : getAllAdmins()) {
             TopicStats s = a.topics().getStats("my-topic");
+            a.lookups().lookupTopic("my-topic");

Review Comment:
   To make sure the lookup operation will not get exceptions, I have added a 
notNull check for the returned service URL.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to