You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Uday Kumar <ud...@indiamart.com.INVALID> on 2024/03/18 15:29:52 UTC
rid is preceded with "null" after migrating from solr 8.10 to 9.5
Hello all,
We are trying to migrate solr from v8.10 to v9.5
Issue:
In solr 8.10, we were getting rid in following format "-1234" in our solr
logs which helped us in determining main solr requests.
But after migrating to solr9.5 we are getting rid as "null-1234".
Can someone please let us know why null is prepended in rid value here?
Thanks and regards,
Uday Kumar
Re: rid is preceded with "null" after migrating from solr 8.10 to 9.5
Posted by Uday Kumar <ud...@indiamart.com.INVALID>.
Hello all,
Finally, we found RCA for this *null *mystery
As christine shared, in below code, hostname is being prepended:
*private static String generateRid(SolrQueryRequest req) { String
hostName = req.getCoreContainer().getHostName(); return hostName + "-" +
ridCounter.getAndIncrement(); }*
In above code, hostname is being passed from *solr.in.sh
<http://solr.in.sh>* file
by default SOLR_HOST variable will be commented, we just have to overwrite
it
*SOLR_HOST="solrNode1a"*
*Thanks & Regards,*
*Uday Kumar*
On Tue, Apr 9, 2024 at 5:28 PM Uday Kumar <ud...@indiamart.com> wrote:
> Thank you!
>
> Any direction on how to debug for "null"?
>
> On Tue, Apr 2, 2024, 23:01 Christine Poerschke (BLOOMBERG/ LONDON) <
> cpoerschke@bloomberg.net> wrote:
>
>> Hi,
>>
>>
>> https://github.com/apache/solr/blob/releases/solr/9.5.0/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java#L722
>> looks like it can generate an `rid` of that format. Though that of course
>> doesn't solve the `null` mystery part.
>>
>> Hope that helps.
>>
>> Christine
>>
>> From: users@solr.apache.org At: 04/02/24 13:36:57 UTC+1:00To:
>> users@solr.apache.org
>> Subject: Re: rid is preceded with "null" after migrating from solr 8.10
>> to 9.5
>>
>> Hello all,
>>
>> Any suggestions on the above mentioned points?
>>
>> *Pasting sample logs below FYR:*
>> Sample log in solr 8.10:
>> Apr, 02 2024 17:48:23 org.apache.solr.core.SolrCore.Request
>> INFO : webapp=/solr path=/select params={sample_query_here} *rid=-1234*
>> hits=50
>> status=0 QTime=73
>>
>> Sample log in solr 9.5:
>> Apr, 02 2024 17:48:23 org.apache.solr.core.SolrCore.Request
>> INFO : webapp=/solr path=/select params={sample_query_here}
>> *rid=null-1234*
>> hits=50 status=0 QTime=73
>>
>>
>> *Thanks & Regards,*
>> *Uday Kumar*
>>
>>
>> On Mon, Mar 18, 2024 at 8:59 PM Uday Kumar <ud...@indiamart.com>
>> wrote:
>>
>> > Hello all,
>> >
>> >
>> > We are trying to migrate solr from v8.10 to v9.5
>> >
>> >
>> > Issue:
>> >
>> > In solr 8.10, we were getting rid in following format "-1234" in our
>> solr
>> > logs which helped us in determining main solr requests.
>> >
>> > But after migrating to solr9.5 we are getting rid as "null-1234".
>> >
>> > Can someone please let us know why null is prepended in rid value here?
>> >
>> >
>> > Thanks and regards,
>> >
>> > Uday Kumar
>> >
>>
>>
>>
Re: rid is preceded with "null" after migrating from solr 8.10 to 9.5
Posted by Uday Kumar <ud...@indiamart.com.INVALID>.
Thank you!
Any direction on how to debug for "null"?
On Tue, Apr 2, 2024, 23:01 Christine Poerschke (BLOOMBERG/ LONDON) <
cpoerschke@bloomberg.net> wrote:
> Hi,
>
>
> https://github.com/apache/solr/blob/releases/solr/9.5.0/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java#L722
> looks like it can generate an `rid` of that format. Though that of course
> doesn't solve the `null` mystery part.
>
> Hope that helps.
>
> Christine
>
> From: users@solr.apache.org At: 04/02/24 13:36:57 UTC+1:00To:
> users@solr.apache.org
> Subject: Re: rid is preceded with "null" after migrating from solr 8.10 to
> 9.5
>
> Hello all,
>
> Any suggestions on the above mentioned points?
>
> *Pasting sample logs below FYR:*
> Sample log in solr 8.10:
> Apr, 02 2024 17:48:23 org.apache.solr.core.SolrCore.Request
> INFO : webapp=/solr path=/select params={sample_query_here} *rid=-1234*
> hits=50
> status=0 QTime=73
>
> Sample log in solr 9.5:
> Apr, 02 2024 17:48:23 org.apache.solr.core.SolrCore.Request
> INFO : webapp=/solr path=/select params={sample_query_here} *rid=null-1234*
> hits=50 status=0 QTime=73
>
>
> *Thanks & Regards,*
> *Uday Kumar*
>
>
> On Mon, Mar 18, 2024 at 8:59 PM Uday Kumar <ud...@indiamart.com>
> wrote:
>
> > Hello all,
> >
> >
> > We are trying to migrate solr from v8.10 to v9.5
> >
> >
> > Issue:
> >
> > In solr 8.10, we were getting rid in following format "-1234" in our solr
> > logs which helped us in determining main solr requests.
> >
> > But after migrating to solr9.5 we are getting rid as "null-1234".
> >
> > Can someone please let us know why null is prepended in rid value here?
> >
> >
> > Thanks and regards,
> >
> > Uday Kumar
> >
>
>
>
Re: rid is preceded with "null" after migrating from solr 8.10 to 9.5
Posted by "Christine Poerschke (BLOOMBERG/ LONDON)" <cp...@bloomberg.net>.
Hi,
https://github.com/apache/solr/blob/releases/solr/9.5.0/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java#L722 looks like it can generate an `rid` of that format. Though that of course doesn't solve the `null` mystery part.
Hope that helps.
Christine
From: users@solr.apache.org At: 04/02/24 13:36:57 UTC+1:00To: users@solr.apache.org
Subject: Re: rid is preceded with "null" after migrating from solr 8.10 to 9.5
Hello all,
Any suggestions on the above mentioned points?
*Pasting sample logs below FYR:*
Sample log in solr 8.10:
Apr, 02 2024 17:48:23 org.apache.solr.core.SolrCore.Request
INFO : webapp=/solr path=/select params={sample_query_here} *rid=-1234* hits=50
status=0 QTime=73
Sample log in solr 9.5:
Apr, 02 2024 17:48:23 org.apache.solr.core.SolrCore.Request
INFO : webapp=/solr path=/select params={sample_query_here} *rid=null-1234*
hits=50 status=0 QTime=73
*Thanks & Regards,*
*Uday Kumar*
On Mon, Mar 18, 2024 at 8:59 PM Uday Kumar <ud...@indiamart.com> wrote:
> Hello all,
>
>
> We are trying to migrate solr from v8.10 to v9.5
>
>
> Issue:
>
> In solr 8.10, we were getting rid in following format "-1234" in our solr
> logs which helped us in determining main solr requests.
>
> But after migrating to solr9.5 we are getting rid as "null-1234".
>
> Can someone please let us know why null is prepended in rid value here?
>
>
> Thanks and regards,
>
> Uday Kumar
>
Re: rid is preceded with "null" after migrating from solr 8.10 to 9.5
Posted by Uday Kumar <ud...@indiamart.com.INVALID>.
Hello all,
Any suggestions on the above mentioned points?
*Pasting sample logs below FYR:*
Sample log in solr 8.10:
Apr, 02 2024 17:48:23 org.apache.solr.core.SolrCore.Request
INFO : webapp=/solr path=/select params={sample_query_here} *rid=-1234* hits=50
status=0 QTime=73
Sample log in solr 9.5:
Apr, 02 2024 17:48:23 org.apache.solr.core.SolrCore.Request
INFO : webapp=/solr path=/select params={sample_query_here} *rid=null-1234*
hits=50 status=0 QTime=73
*Thanks & Regards,*
*Uday Kumar*
On Mon, Mar 18, 2024 at 8:59 PM Uday Kumar <ud...@indiamart.com> wrote:
> Hello all,
>
>
> We are trying to migrate solr from v8.10 to v9.5
>
>
> Issue:
>
> In solr 8.10, we were getting rid in following format "-1234" in our solr
> logs which helped us in determining main solr requests.
>
> But after migrating to solr9.5 we are getting rid as "null-1234".
>
> Can someone please let us know why null is prepended in rid value here?
>
>
> Thanks and regards,
>
> Uday Kumar
>