Re: Maintaining variable values between transition states

2017-03-30 Thread Shawn Heisey
On 3/30/2017 12:34 PM, Shashank Pedamallu wrote: > I have some configuration variables that I need to hold in Solr as it > switches between transient states on a transient core. What is the > best way to do this? These variables can change value during a running > environment. So, I need to have re

Re: Maintaining variable values between transition states

2017-03-30 Thread Shashank Pedamallu
Hi Erick, Thanks for your response. So, by the way you say it, I understand that there is no way to persist variables between transient states. I just looked at ReplicationHandler class and it has the api to enable or disable replication on a core which is stored as an AtomicBoolean (defaulted

Re: Maintaining variable values between transition states

2017-03-30 Thread Erick Erickson
Short form: There's no easy to do that ATM. The whole synchronization process when working with transient cores (i.e. synchronizing on some of the internal structures is pretty hairy and would require you to fork a version of Solr to change. Much of this is being worked out in SOLR-8906 where you

Maintaining variable values between transition states

2017-03-30 Thread Shashank Pedamallu
Hi All, I have some configuration variables that I need to hold in Solr as it switches between transient states on a transient core. What is the best way to do this? These variables can change value during a running environment. So, I need to have read and write access to the persistent store.