Re: How to prevent solr from deleting cores when getting an empty config from zookeeper

2019-04-12 Thread Koen De Groote
Thanks for that, and for your time. Kind regards, Koen On Fri, Apr 12, 2019 at 3:33 AM Shawn Heisey wrote: > On 4/11/2019 6:44 PM, Koen De Groote wrote: > > I gathered a solr log from 7.6.0 at TRACE level. > > > > Then I replicated the experiment with 6.6.5 and with that version, the > > direct

Re: How to prevent solr from deleting cores when getting an empty config from zookeeper

2019-04-12 Thread Yogendra Kumar Soni
I faced similar situation with solr cloud. http://lucene.472066.n3.nabble.com/Solr-Cloud-wiping-all-cores-when-restart-without-proper-zookeeper-directories-td4420598.html Solr is deleting folders containing solr cores only any other folder is intact. On Fri, Apr 12, 2019 at 7:03 AM Shawn Heisey

Re: How to prevent solr from deleting cores when getting an empty config from zookeeper

2019-04-11 Thread Shawn Heisey
On 4/11/2019 6:44 PM, Koen De Groote wrote: I gathered a solr log from 7.6.0 at TRACE level. Then I replicated the experiment with 6.6.5 and with that version, the directories were not deleted. Log also included. The audit log is from solr7. The deletes start at 01:51:48, which translates to 23

Re: How to prevent solr from deleting cores when getting an empty config from zookeeper

2019-04-11 Thread Koen De Groote
I gathered a solr log from 7.6.0 at TRACE level. Then I replicated the experiment with 6.6.5 and with that version, the directories were not deleted. Log also included. The audit log is from solr7. The deletes start at 01:51:48, which translates to 23:51:48 UTC, which you'll be able to find in th

Re: How to prevent solr from deleting cores when getting an empty config from zookeeper

2019-04-11 Thread Shawn Heisey
On 4/11/2019 2:40 PM, Koen De Groote wrote: That being explained, am I right in understanding that currently there is no way of configuring Solr so that it won't delete the folders, in this event? In my opinion, Solr should never delete cores unless it has been explicitly *ASKED* to do so with

Re: How to prevent solr from deleting cores when getting an empty config from zookeeper

2019-04-11 Thread Koen De Groote
Shawn, Apologies, I should have explained more properly. To clarify: manually deleting the 'version-2' directory is never something that happened when I first observed this behavior. The reason I did it in this example is that it's the fastest and simplest way to demonstrate the behavior. What I

Re: How to prevent solr from deleting cores when getting an empty config from zookeeper

2019-04-11 Thread Shawn Heisey
On 4/11/2019 3:17 AM, Koen De Groote wrote: The basic steps are: set up zookeeper, set up solr root, set up solr. Create dummy collection with example data. Stop the containers. Delete the zookeeper 'version-2' folder. Recreate zookeeper container. Redo the mkroot, recreate solr container. At t

Re: How to prevent solr from deleting cores when getting an empty config from zookeeper

2019-04-11 Thread Koen De Groote
Attached to this mail is a tar.gz with instructions to reproduce. It contains 3 text files with commands and comments. Be sure to check the actual commands before executing. This was tested on a Ubuntu 18.04 VM, with docker installed on it. The order of execution is: - zookeeper instructions.txt

Re: How to prevent solr from deleting cores when getting an empty config from zookeeper

2019-04-10 Thread Gus Heck
Deleting data on a zookeeper hiccup does sound bad if it's really solr's fault. Can you work up a set of steps to reproduce? Something like install solr, index tech products example, shut down solr, perform some editing to zk, start solr, observe data gone (but with lots of details about exact conf