rdhabalia closed pull request #2075: Fix: destination lookup url for v2
URL: https://github.com/apache/incubator-pulsar/pull/2075
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/HttpLookupService.java
 
b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/HttpLookupService.java
index a5b045571c..185412cb73 100644
--- 
a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/HttpLookupService.java
+++ 
b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/HttpLookupService.java
@@ -100,7 +100,7 @@ public String getServiceUrl() {
     public CompletableFuture<List<String>> 
getTopicsUnderNamespace(NamespaceName namespace) {
         CompletableFuture<List<String>> future = new CompletableFuture<>();
 
-        String format = namespace.isV2() ? 
"admin/v2/namespaces/%s/destinations" : "admin/namespaces/%s/destinations";
+        String format = namespace.isV2() ? "admin/v2/namespaces/%s/topics" : 
"admin/namespaces/%s/destinations";
         httpClient
             .get(String.format(format, namespace), String[].class)
             .thenAccept(topics -> {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to