[jira] [Commented] (SOLR-9077) Streaming expression in solr doesnot support collection alias
[ https://issues.apache.org/jira/browse/SOLR-9077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15582274#comment-15582274 ] Dennis Gove commented on SOLR-9077: --- It might be necessary to do that in each source stream, though a centralized location might be better. The StreamFactory could be a place to store the aliases after looking them up but I'm not 100% sure that's the best place. > Streaming expression in solr doesnot support collection alias > - > > Key: SOLR-9077 > URL: https://issues.apache.org/jira/browse/SOLR-9077 > Project: Solr > Issue Type: Bug > Components: SolrCloud >Affects Versions: 5.5.1 >Reporter: Suds >Priority: Minor > > Streaming expression in solr does not support collection alias > when I tried to access collection alias I get null pointer exception > issue seems to be related to following code , clusterState.getActiveSlices > returns null > Collection slices = clusterState.getActiveSlices(this.collection); > for(Slice slice : slices) { > } > fix seems to fairly simple , clusterState.getActiveSlices can be made aware > of collection alias. I am not sure what will happen when we have large alias > which has hundred of slices. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-9077) Streaming expression in solr doesnot support collection alias
[ https://issues.apache.org/jira/browse/SOLR-9077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15580253#comment-15580253 ] Kevin Risden commented on SOLR-9077: [~dpgove] - Looks like there is some related code to getting info about aliases here: https://github.com/apache/lucene-solr/blob/master/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrClient.java#L1299 In CloudSolrStream, all that looks like it needs to be done is get all the collections (from aliases too) and then add all the replicas from those collections. I can put a patch together for that. Are there other places where aliases would be used that I need to check? > Streaming expression in solr doesnot support collection alias > - > > Key: SOLR-9077 > URL: https://issues.apache.org/jira/browse/SOLR-9077 > Project: Solr > Issue Type: Bug > Components: SolrCloud >Affects Versions: 5.5.1 >Reporter: Suds >Priority: Minor > > Streaming expression in solr does not support collection alias > when I tried to access collection alias I get null pointer exception > issue seems to be related to following code , clusterState.getActiveSlices > returns null > Collection slices = clusterState.getActiveSlices(this.collection); > for(Slice slice : slices) { > } > fix seems to fairly simple , clusterState.getActiveSlices can be made aware > of collection alias. I am not sure what will happen when we have large alias > which has hundred of slices. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org