[ 
https://issues.apache.org/jira/browse/SOLR-15544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Kuo updated SOLR-15544:
-----------------------------
    Description: 
Our structure is single solr node which is slave. There is master keeps doing 
imports and the slave refreshes it.

We have a custom ValueSourceParser called EcpcValueSource which has static 
members which we would like to reload independently.

However, the static members are losing the values. We see the initial load at 
startup and then another core reload after a few hours in a background thread.  
Whats causing the core reload to happen? How can we preserve our static fields 
on the custom EcpcValueSource to be preserved across reloads

How/why does that happen and how can we achieve what we need?

I have included some logs below:

 
 * {{021-07-15 06:24:54.919 INFO (coreLoadExecutor-13-thread-1) [ x:job_prod] 
o.a.s.c.CoreContainer Creating SolrCore 'job_prod' using configuration from 
instancedir /home/solr/jobProdZoo_8.8/solr/job_prod, trusted=true}}
 * {{2021-07-15 06:24:54.987 INFO (coreLoadExecutor-13-thread-1) [ x:job_prod] 
o.a.s.m.r.SolrJmxReporter JMX monitoring for 'solr.core.job_prod' (registry 
'solr.core.job_prod') enabled at server: 
com.sun.jmx.mbeanserver.JmxMBeanServer@6107227e}}
 * {{2021-07-15 06:24:55.023 INFO (coreLoadExecutor-13-thread-1) [ x:job_prod] 
o.a.s.c.SolrCore [[job_prod] ] Opening new SolrCore at 
[/home/solr/jobProdZoo_8.8/solr/job_prod], dataDir=[/solr/job_prod_7570/data/]}}
 * {{2021-07-15 06:24:55.954 INFO (coreLoadExecutor-13-thread-1) [ x:job_prod] 
c.l.s.a.EcpcValueSource Called init for EcpcValueSource: 
com.lead5.solr.adjustCpc.EcpcValueSource@57543cec}}
 * {{2021-07-15 06:24:55.954 INFO (coreLoadExecutor-13-thread-1) [ x:job_prod] 
c.l.s.a.EcpcValueSource initial load in init}}

 
 * {{2021-07-15 08:18:07.152 INFO (Thread-96) [ ] o.a.s.c.CoreContainer 
Reloading SolrCore 'job_prod' using configuration from instancedir 
/home/solr/jobProdZoo_8.8/solr/job_prod}}
 * {{2021-07-15 08:18:07.283 INFO (Thread-96) [ x:job_prod] 
o.a.s.m.r.SolrJmxReporter JMX monitoring for 'solr.core.job_prod' (registry 
'solr.core.job_prod') enabled at server: 
com.sun.jmx.mbeanserver.JmxMBeanServer@6107227e}}
 * {{2021-07-15 08:18:07.283 INFO (Thread-96) [ ] o.a.s.c.SolrCore [[job_prod] 
] Opening new SolrCore at [/home/solr/jobProdZoo_8.8/solr/job_prod], 
dataDir=[/solr/job_prod_7570/data/]}}
 * {{2021-07-15 08:18:07.730 INFO (Thread-96) [ ] c.l.s.a.EcpcValueSource 
Called init for EcpcValueSource: 
com.lead5.solr.adjustCpc.EcpcValueSource@7d40b5cf}}
 * {{2021-07-15 08:18:07.731 INFO (Thread-96) [ ] c.l.s.a.EcpcValueSource 
initial load in init}}

 

Any help is greatly appreciated!

Thanks

  was:
Our structure is single solr node which is slave. There is master keeps doing 
imports and the slave refreshes it.

We have a custom ValueSourceParser called EcpcValueSource which has static 
members which we would like to reload independently.

However, the static members are losing the values. We see coreLoadExecutor and 
Thread-x are loading the init independently.

How/why does that happen and how can we achieve what we need?

I have included some logs below:

 
 * {{021-07-15 06:24:54.919 INFO (coreLoadExecutor-13-thread-1) [ x:job_prod] 
o.a.s.c.CoreContainer Creating SolrCore 'job_prod' using configuration from 
instancedir /home/solr/jobProdZoo_8.8/solr/job_prod, trusted=true}}
 * {{2021-07-15 06:24:54.987 INFO (coreLoadExecutor-13-thread-1) [ x:job_prod] 
o.a.s.m.r.SolrJmxReporter JMX monitoring for 'solr.core.job_prod' (registry 
'solr.core.job_prod') enabled at server: 
com.sun.jmx.mbeanserver.JmxMBeanServer@6107227e}}
 * {{2021-07-15 06:24:55.023 INFO (coreLoadExecutor-13-thread-1) [ x:job_prod] 
o.a.s.c.SolrCore [[job_prod] ] Opening new SolrCore at 
[/home/solr/jobProdZoo_8.8/solr/job_prod], dataDir=[/solr/job_prod_7570/data/]}}
 * {{2021-07-15 06:24:55.954 INFO (coreLoadExecutor-13-thread-1) [ x:job_prod] 
c.l.s.a.EcpcValueSource Called init for EcpcValueSource: 
com.lead5.solr.adjustCpc.EcpcValueSource@57543cec}}
 * {{2021-07-15 06:24:55.954 INFO (coreLoadExecutor-13-thread-1) [ x:job_prod] 
c.l.s.a.EcpcValueSource initial load in init}}

 
 * {{2021-07-15 08:18:07.152 INFO (Thread-96) [ ] o.a.s.c.CoreContainer 
Reloading SolrCore 'job_prod' using configuration from instancedir 
/home/solr/jobProdZoo_8.8/solr/job_prod}}
 * {{2021-07-15 08:18:07.283 INFO (Thread-96) [ x:job_prod] 
o.a.s.m.r.SolrJmxReporter JMX monitoring for 'solr.core.job_prod' (registry 
'solr.core.job_prod') enabled at server: 
com.sun.jmx.mbeanserver.JmxMBeanServer@6107227e}}
 * {{2021-07-15 08:18:07.283 INFO (Thread-96) [ ] o.a.s.c.SolrCore [[job_prod] 
] Opening new SolrCore at [/home/solr/jobProdZoo_8.8/solr/job_prod], 
dataDir=[/solr/job_prod_7570/data/]}}
 * {{2021-07-15 08:18:07.730 INFO (Thread-96) [ ] c.l.s.a.EcpcValueSource 
Called init for EcpcValueSource: 
com.lead5.solr.adjustCpc.EcpcValueSource@7d40b5cf}}
 * {{2021-07-15 08:18:07.731 INFO (Thread-96) [ ] c.l.s.a.EcpcValueSource 
initial load in init}}

 

Any help is greatly appreciated!

Thanks


> ValueSourceParser init gets called twice
> ----------------------------------------
>
>                 Key: SOLR-15544
>                 URL: https://issues.apache.org/jira/browse/SOLR-15544
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 8.8
>            Reporter: Simon Kuo
>            Priority: Major
>
> Our structure is single solr node which is slave. There is master keeps doing 
> imports and the slave refreshes it.
> We have a custom ValueSourceParser called EcpcValueSource which has static 
> members which we would like to reload independently.
> However, the static members are losing the values. We see the initial load at 
> startup and then another core reload after a few hours in a background 
> thread.  Whats causing the core reload to happen? How can we preserve our 
> static fields on the custom EcpcValueSource to be preserved across reloads
> How/why does that happen and how can we achieve what we need?
> I have included some logs below:
>  
>  * {{021-07-15 06:24:54.919 INFO (coreLoadExecutor-13-thread-1) [ x:job_prod] 
> o.a.s.c.CoreContainer Creating SolrCore 'job_prod' using configuration from 
> instancedir /home/solr/jobProdZoo_8.8/solr/job_prod, trusted=true}}
>  * {{2021-07-15 06:24:54.987 INFO (coreLoadExecutor-13-thread-1) [ 
> x:job_prod] o.a.s.m.r.SolrJmxReporter JMX monitoring for 'solr.core.job_prod' 
> (registry 'solr.core.job_prod') enabled at server: 
> com.sun.jmx.mbeanserver.JmxMBeanServer@6107227e}}
>  * {{2021-07-15 06:24:55.023 INFO (coreLoadExecutor-13-thread-1) [ 
> x:job_prod] o.a.s.c.SolrCore [[job_prod] ] Opening new SolrCore at 
> [/home/solr/jobProdZoo_8.8/solr/job_prod], 
> dataDir=[/solr/job_prod_7570/data/]}}
>  * {{2021-07-15 06:24:55.954 INFO (coreLoadExecutor-13-thread-1) [ 
> x:job_prod] c.l.s.a.EcpcValueSource Called init for EcpcValueSource: 
> com.lead5.solr.adjustCpc.EcpcValueSource@57543cec}}
>  * {{2021-07-15 06:24:55.954 INFO (coreLoadExecutor-13-thread-1) [ 
> x:job_prod] c.l.s.a.EcpcValueSource initial load in init}}
>  
>  * {{2021-07-15 08:18:07.152 INFO (Thread-96) [ ] o.a.s.c.CoreContainer 
> Reloading SolrCore 'job_prod' using configuration from instancedir 
> /home/solr/jobProdZoo_8.8/solr/job_prod}}
>  * {{2021-07-15 08:18:07.283 INFO (Thread-96) [ x:job_prod] 
> o.a.s.m.r.SolrJmxReporter JMX monitoring for 'solr.core.job_prod' (registry 
> 'solr.core.job_prod') enabled at server: 
> com.sun.jmx.mbeanserver.JmxMBeanServer@6107227e}}
>  * {{2021-07-15 08:18:07.283 INFO (Thread-96) [ ] o.a.s.c.SolrCore 
> [[job_prod] ] Opening new SolrCore at 
> [/home/solr/jobProdZoo_8.8/solr/job_prod], 
> dataDir=[/solr/job_prod_7570/data/]}}
>  * {{2021-07-15 08:18:07.730 INFO (Thread-96) [ ] c.l.s.a.EcpcValueSource 
> Called init for EcpcValueSource: 
> com.lead5.solr.adjustCpc.EcpcValueSource@7d40b5cf}}
>  * {{2021-07-15 08:18:07.731 INFO (Thread-96) [ ] c.l.s.a.EcpcValueSource 
> initial load in init}}
>  
> Any help is greatly appreciated!
> Thanks



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to