Tsz Wo Nicholas Sze created RATIS-365: -----------------------------------------
Summary: Implement RaftServer.getGroupIds() using the key set of ImplMap Key: RATIS-365 URL: https://issues.apache.org/jira/browse/RATIS-365 Project: Ratis Issue Type: Improvement Components: server Reporter: Tsz Wo Nicholas Sze Assignee: Tsz Wo Nicholas Sze {code:java} //RaftServerProxy public Iterable<RaftGroupId> getGroupIds() throws IOException { return getImpls().stream().map(RaftServerImpl::getGroupId).collect(Collectors.toList()); } {code} getGroupIds() above unnecessarily calls getImpls() and then map RaftServerImpl to RaftGroupId. We may get RaftGroupId(s) directly from ImplMap. -- This message was sent by Atlassian JIRA (v7.6.3#76005)