C0urante commented on code in PR #14538:
URL: https://github.com/apache/kafka/pull/14538#discussion_r1362528851


##########
connect/runtime/src/test/java/org/apache/kafka/connect/util/clusters/EmbeddedConnectCluster.java:
##########
@@ -302,27 +177,6 @@ public String getName() {
         return connectClusterName;
     }
 
-    /**
-     * Get the workers that are up and running.
-     *
-     * @return the list of handles of the online workers
-     */
-    public Set<WorkerHandle> activeWorkers() {
-        ObjectMapper mapper = new ObjectMapper();
-        return connectCluster.stream()
-                .filter(w -> {
-                    try {
-                        mapper.readerFor(ServerInfo.class)
-                                
.readValue(responseToString(requestGet(w.url().toString())));
-                        return true;
-                    } catch (ConnectException | IOException e) {
-                        // Worker failed to respond. Consider it's offline
-                        return false;
-                    }
-                })
-                .collect(Collectors.toSet());
-    }

Review Comment:
   This is also migrated directly to the `EmbeddedConnect` class.



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to