[ 
https://issues.apache.org/jira/browse/SOLR-18428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Pugh updated SOLR-18428:
-----------------------------
    Description: 
Currently, no v2 form exists for Fetch Single Shard — only POST .../shards 
(create) and DELETE .../shards/\{shard} exist; there's no read.

Proposed v2: GET /api/collections/collName/shards/shard1

Proposed response shape — the single-shard summary from "List Shards" subtask, 
plus its full replica list (same shape "List Replicas" above returns), so this 
is the natural drill-down from the list view:

{
  "shard": "shard1",
  "range": "80000000-ffffffff",
  "state": "active",
  "replicaHealth": "GREEN",
  "replicas": {
    "core_node1":

{       "core": "collName_shard1_replica_n1",       "node_name": 
"host:8983_solr",       "state": "active",       "type": "NRT",       "leader": 
true     }

  }
}

Part of SOLR-16392; see the "List Shards" related subtask for the replicaHealth 
naming rationale.

 

Source: "Resource 'CRUD' APIs" tab, row "Fetch Single Shard". Same 
CLUSTERSTATUS-decomposition motivation as "List Shards" above.

  was:
Currently, no v2 form exists for Fetch Single Shard — only POST .../shards 
(create) and DELETE .../shards/\{shard} exist; there's no read.

Proposed v2: GET /api/collections/collName/shards/shard1

Proposed response shape — the single-shard summary from "List Shards" subtask, 
plus its full replica list (same shape "List Replicas" above returns), so this 
is the natural drill-down from the list view:

{
  "shard": "shard1",
  "range": "80000000-ffffffff",
  "state": "active",
  "replicaHealth": "GREEN",
  "replicas": {
    "core_node1": {
      "core": "collName_shard1_replica_n1",
      "node_name": "host:8983_solr",
      "state": "active",
      "type": "NRT",
      "leader": true
    }
  }
}

Part of SOLR-16392; see the "List Shards" related subtask for the replicaHealth 
naming rationale.


> Add v2 API equivalent for "Fetch Single Shard"
> ----------------------------------------------
>
>                 Key: SOLR-18428
>                 URL: https://issues.apache.org/jira/browse/SOLR-18428
>             Project: Solr
>          Issue Type: Sub-task
>          Components: v2 API
>            Reporter: Eric Pugh
>            Priority: Major
>
> Currently, no v2 form exists for Fetch Single Shard — only POST .../shards 
> (create) and DELETE .../shards/\{shard} exist; there's no read.
> Proposed v2: GET /api/collections/collName/shards/shard1
> Proposed response shape — the single-shard summary from "List Shards" 
> subtask, plus its full replica list (same shape "List Replicas" above 
> returns), so this is the natural drill-down from the list view:
> {
>   "shard": "shard1",
>   "range": "80000000-ffffffff",
>   "state": "active",
>   "replicaHealth": "GREEN",
>   "replicas": {
>     "core_node1":
> {       "core": "collName_shard1_replica_n1",       "node_name": 
> "host:8983_solr",       "state": "active",       "type": "NRT",       
> "leader": true     }
>   }
> }
> Part of SOLR-16392; see the "List Shards" related subtask for the 
> replicaHealth naming rationale.
>  
> Source: "Resource 'CRUD' APIs" tab, row "Fetch Single Shard". Same 
> CLUSTERSTATUS-decomposition motivation as "List Shards" above.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to