rdhabalia commented on a change in pull request #2240: remove redundant 
endpoint to get workers in cluster
URL: https://github.com/apache/incubator-pulsar/pull/2240#discussion_r205575075
 
 

 ##########
 File path: 
pulsar-client-admin/src/main/java/org/apache/pulsar/client/admin/internal/FunctionsImpl.java
 ##########
 @@ -275,7 +275,7 @@ public void downloadFunction(String destinationPath, 
String path) throws PulsarA
 
     public List<WorkerInfo> getWorkers() throws PulsarAdminException {
         try {
-            return request(functions.path("workers")).get(new 
GenericType<List<WorkerInfo>>() {
+            return request(functions.path("cluster")).get(new 
GenericType<List<WorkerInfo>>() {
 
 Review comment:
   I think then we can also change cli option from workers to cluster. it might 
be breaking change but I think we can fix it now.

----------------------------------------------------------------
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