[ 
https://issues.apache.org/jira/browse/SOLR-14303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18144408#comment-18144408
 ] 

Eric Pugh commented on SOLR-14303:
----------------------------------

We've moved a lot furhtur forwards, and we could NOW move this to using the new 
v2 Cluster state API.  I asked codex for a summary of the work:

 

The current v2 APIs provide the data needed to migrate Cloud → Graph away from 
/admin/zookeeper:
 * GET /api/collections?detailed=true returns collectionsDetail, containing 
collections, shards, replicas, states, and replica URLs. It reuses the same 
ClusterStatus logic as v1 CLUSTERSTATUS.
 * GET /api/cluster/nodes provides live nodes. The graph already uses this 
endpoint.
 * Cloud → Nodes already uses CollectionsV2.listCollections(\{detailed: true}, 
…), providing an existing UI example.

The migration would require:
h1. Replace Zookeeper.clusterState(...) with 
CollectionsV2.listCollections(\{detailed: true}, …).
h1. Read data.collectionsDetail instead of data.znode.data.
h1. Implement collection-name and status filtering client-side, preserving the 
existing handling of replicas on non-live nodes.
h1. Calculate pagination client-side instead of parsing data.znode.paging.

The remaining gap is server-side filtering and pagination, rather than missing 
cluster-state data. Client-side pagination would limit rendering but still 
download the full collection-state response. If server-side pagination is 
required for large clusters, the v2 endpoint would need extending.

The services.js comment stating that the graph has “no v2 equivalent” should 
therefore be updated: the data equivalent exists, but the filtering and 
pagination behavior still needs adapting.

This would remove the graph’s dependency on /admin/zookeeper. The separate 
ZooKeeper status screen would still call /admin/zookeeper/status.

> Deprecate /admin/zookeeper
> --------------------------
>
>                 Key: SOLR-14303
>                 URL: https://issues.apache.org/jira/browse/SOLR-14303
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Ishan Chattopadhyaya
>            Priority: Major
>         Attachments: Screenshot at Mar 01 17-26-37.png, Skjermbilde 
> 2023-02-17 kl. 15.49.59.png, Skjermbilde 2023-02-17 kl. 15.51.07.png, 
> Skjermbilde 2023-02-17 kl. 16.18.43.png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> This is a spinoff from SOLR-13942 to deprecate /admin/zookeeper and cutover 
> the admin UI to the new API proposed there (/cluster/zk).



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to