Joel,
I looked at the commits from that enhancement briefly. It looks like the work 
to resolve te slices was put into a central method in CLoudSolrStream. But to 
check aliases the Boolean flag needs to be true.

Everywhere this is used in TopicStream its set to false (3 places). The first 
two are for retrieving and persisting the topi checkpoints, bringing up the 
question, should aliases be allowed for that collection as well?

The third is probably what I'm running into.

  protected void constructStreams() throws IOException {
    try {
      ZkStateReader zkStateReader = cloudSolrClient.getZkStateReader();
      Slice[] slices = CloudSolrStream.getSlices(this.collection, 
zkStateReader, false);

Anyways, this was my 5 minute investigation. I haven't taken the effort to try 
and change it. Do you think this could be it?

Jonathan
-----Original Message-----
From: Joel Bernstein <joels...@gmail.com> 
Sent: Thursday, May 14, 2020 6:32 PM
To: solr-user@lucene.apache.org
Subject: Re: using aliases in topic stream

*** WARNING ***
EXTERNAL EMAIL -- This message originates from outside our organization.


This is where the alias work was done:

https://issues.apache.org/jira/browse/SOLR-9077

It could be though that there is a bug here. I'll see if I can reproduce it 
locally.



Joel Bernstein
http://joelsolr.blogspot.com/


On Thu, May 14, 2020 at 6:24 PM Nightingale, Jonathan A (US) < 
jonathan.nighting...@baesystems.com> wrote:

> I'm looking on master on git hub, the solrj tests assume never use 
> aliases Just as an example. that’s all over the place in the tests
>
>
> https://github.com/apache/lucene-solr/blob/master/solr/solrj/src/test/
> org/apache/solr/client/solrj/io/stream/StreamDecoratorTest.java
>
> @Test
>   public void testTerminatingDaemonStream() throws Exception {
>     Assume.assumeTrue(!useAlias);
>
> -----Original Message-----
> From: Joel Bernstein <joels...@gmail.com>
> Sent: Wednesday, May 13, 2020 1:11 PM
> To: solr-user@lucene.apache.org
> Subject: Re: using aliases in topic stream
>
> *** WARNING ***
> EXTERNAL EMAIL -- This message originates from outside our organization.
>
>
> What version of Solr are you using? The topic stream in master seems 
> to have the code in place to query aliases.
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
>
> On Wed, May 13, 2020 at 12:33 PM Nightingale, Jonathan A (US) < 
> jonathan.nighting...@baesystems.com> wrote:
>
> > Hi Everyone,
> >
> > I'm trying to run this stream and I get the following error
> >
> > topic(topics,collection1,
> > q="classes:GXP/INDEX",fl="uuid",id="feed-8",initialCheckpoint=0,chec
> > kp
> > ointEvery=-1)
> >
> > {
> >   "result-set": {
> >     "docs": [
> >       {
> >         "EXCEPTION": "Slices not found for collection1",
> >         "EOF": true,
> >         "RESPONSE_TIME": 6
> >       }
> >     ]
> >   }
> > }
> >
> > "collection1" is an alias. I can search using the alias perfectly 
> > fine. In fact the search stream operation works fine with the alias.
> > It's just this topic one I've seen so far. Does anyone know why this is?
> >
> > Thanks!
> > Jonathan Nightingale
> >
> >
>

Reply via email to