Question on changes to /admin/zookeeper handler

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Question on changes to /admin/zookeeper handler

Ilan Ginzburg
I'm in the process of removing everything /clusterstate.json from Solr
9.0 (https://issues.apache.org/jira/browse/SOLR-12823).

There's a choice to be made regarding /admin/zookeeper endpoint
(ZookeeperInfoHandler).

Looking at http://localhost:8985/solr/admin/zookeeper?path=/clusterstate.json
(with or without &detail=true) there's not much info in this call when
all collections are stateFormat=2.

But http://localhost:8985/solr/admin/zookeeper?path=/clusterstate.json&detail=true&view=graph
is a way to get a (paginated?) list of all collections (including
stateFormat=2 collections).

With /clusterstate.json gone, shall we continue to support the same
URL (the last one) to list all collections (obviously minus znode
specific info about  /clusterstate.json) or maybe make things a bit
more explicit, for example
http://localhost:8985/solr/admin/zookeeper/listcollections to provide
that output?
I prefer the second approach, cleaner than pretending that
/clusterstate.json still exists.

Other options I've missed here?

Thanks,
Ilan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Question on changes to /admin/zookeeper handler

Ilan Ginzburg
Answering to myself: this is used from the Admin UI - Cloud - Graph page.
Therefore need to stay consistent (including the "Json within Json"
format for collection data), and reflect any URL changes in
services.js.

On Sun, May 17, 2020 at 4:30 PM Ilan Ginzburg <[hidden email]> wrote:

>
> I'm in the process of removing everything /clusterstate.json from Solr
> 9.0 (https://issues.apache.org/jira/browse/SOLR-12823).
>
> There's a choice to be made regarding /admin/zookeeper endpoint
> (ZookeeperInfoHandler).
>
> Looking at http://localhost:8985/solr/admin/zookeeper?path=/clusterstate.json
> (with or without &detail=true) there's not much info in this call when
> all collections are stateFormat=2.
>
> But http://localhost:8985/solr/admin/zookeeper?path=/clusterstate.json&detail=true&view=graph
> is a way to get a (paginated?) list of all collections (including
> stateFormat=2 collections).
>
> With /clusterstate.json gone, shall we continue to support the same
> URL (the last one) to list all collections (obviously minus znode
> specific info about  /clusterstate.json) or maybe make things a bit
> more explicit, for example
> http://localhost:8985/solr/admin/zookeeper/listcollections to provide
> that output?
> I prefer the second approach, cleaner than pretending that
> /clusterstate.json still exists.
>
> Other options I've missed here?
>
> Thanks,
> Ilan

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]