lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "omer aygun (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-11284) Distributed searches with the shards parameter does not work with collection alias
Date Fri, 25 Aug 2017 06:54:00 GMT

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

omer aygun commented on SOLR-11284:
-----------------------------------

Sorry for inconvenience, i searched the bug list and did not find any related so decided to
create an issue here :( 

Here are the details : 

I have collections according to year for my data which are divided into shards according to
months. (e.g collection name col_2013, shards -> 201301,201302,...,201312 / col_2014 ->
201401, 201402, 201403 etc.)

For all collections i created an alias to dynamically manage my data. (e.g col_arc -> colr_2013,
col_2014, col_2015, col_2016)

When i query my data with adding "shards" parameter for routing requests to specific shards
(since i have lots of shards each contain huge amount of data) solr raises the error mentioned
above. If alias points to only 1 collection, it behaves as it is expected. (no excepiton raised,
the request is routed to given shards)

http://localhost:8983/solr/col_arc/select?indent=on&q=*:*&wt=json&shards=201301,201302,201303

{
  "responseHeader":{
    "zkConnected":true,
    "status":503,
    "QTime":19,
    "params":{
      "q":"*:*",
      "shards":"201301,201302,201303",
      "indent":"on",
      "wt":"json"}},
  "error":{
    "metadata":[
      "error-class","org.apache.solr.common.SolrException",
      "root-error-class","org.apache.solr.common.SolrException"],
    "msg":"no servers hosting shard: ",
    "code":503}}


> Distributed searches with the shards parameter does not work with collection alias
> ----------------------------------------------------------------------------------
>
>                 Key: SOLR-11284
>                 URL: https://issues.apache.org/jira/browse/SOLR-11284
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>    Affects Versions: 6.1
>            Reporter: omer aygun
>
> When "shards" parameter is used for a collection alias solr gives an error  "msg":"no
servers hosting shard: " even if the shard is present. If i use the alias for only 1 collection
it works as it expected, but when i add extra collection to the alias it does not work gives
the error above. Solr version is 6.1.0.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message