[jira] [Commented] (SOLR-11950) CLUSTERSTATUS shards parameter does not accept comma delimited list

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (SOLR-11950) CLUSTERSTATUS shards parameter does not accept comma delimited list

JIRA jira@apache.org

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

ASF subversion and git services commented on SOLR-11950:
--------------------------------------------------------

Commit 7f651bd713dbc9f4a390b74009c444ba5e56a0c9 in lucene-solr's branch refs/heads/branch_7x from [~gerlowskija]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=7f651bd ]

SOLR-11950: Parse CLUSTERSTATUS 'shard' param as comma-delim list

The documentation for the 'shard' parameter on CLUSTERSTATUS requests,
indicates that users should be able to provide a comma-separated list
of shards they are interested in.  However, prior to this commit the
parameter value was parsed as a single shard name, causing requests
with more than one shard to return as a 400.

This commit changes this behavior to correctly parse the param value.


> CLUSTERSTATUS shards parameter does not accept comma delimited list
> -------------------------------------------------------------------
>
>                 Key: SOLR-11950
>                 URL: https://issues.apache.org/jira/browse/SOLR-11950
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public)
>          Components: documentation
>    Affects Versions: 6.3.1, 7.2, master (8.0), 7.2.1
>            Reporter: Chris Ulicny
>            Assignee: Jason Gerlowski
>            Priority: Minor
>              Labels: collection-api
>         Attachments: SOLR-11950.patch
>
>
> According to the documentation for the Collections API, the CLUSTERSTATUS action should accept a comma delimited list of shards if specified. However, when specifying a comma delimited list, it is treated as a single value instead of being parsed into multiple values.
> The request
> .../collections?action=CLUSTERSTATUS&collection=test_collection&shard=shard1,shard2
> yields the response:
> {"responseHeader":\{"status":400,"QTime":5},"error":\{"metadata":["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"],"msg":"Collection: test_collection shard: shard1,shard2 not found","code":400}}
> instead of locating both shard1 and shard2.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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