[ https://issues.apache.org/jira/browse/SOLR-13942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17051265#comment-17051265 ]
Andrzej Bialecki commented on SOLR-13942: ----------------------------------------- {quote}This isn't any more powerful than an already existing API; just cleaner. {quote} You're missing the point: it's a separate API. It needs to be at least documented so that the ops people are made aware of it, know it exists and know how to secure it. {quote}a unit test to validate whether ZK's data is actually being returned is insufficient {quote} Do you think that this is a sufficient test of a new API? {code:java} @Test public void testZkread() throws Exception { URL baseUrl = cluster.getJettySolrRunner(0).getBaseUrl(); try( HttpSolrClient client = new HttpSolrClient.Builder(baseUrl.toString()).build()){ Object o = Utils.executeGET(client.getHttpClient(), baseUrl.toString().replace("/solr", "/api"+ "/cluster/zk/security.json"), Utils.JSONCONSUMER ); // THIS IS THE TEST: assertNotNull(o); } }{code} > /api/cluster/zk/* to fetch raw ZK data > -------------------------------------- > > Key: SOLR-13942 > URL: https://issues.apache.org/jira/browse/SOLR-13942 > Project: Solr > Issue Type: New Feature > Components: v2 API > Reporter: Noble Paul > Assignee: Noble Paul > Priority: Blocker > Fix For: 8.5 > > Time Spent: 20m > Remaining Estimate: 0h > > example > download the {{state.json}} of > {code} > GET http://localhost:8983/api/cluster/zk/collections/gettingstarted/state.json > {code} > get a list of all children under {{/live_nodes}} > {code} > GET http://localhost:8983/api/cluster/zk/live_nodes > {code} > If the requested path is a node with children show the list of child nodes > and their meta data -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org