You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Moll, Dr. Andreas" <Mo...@juris.de> on 2015/12/17 16:00:57 UTC

SolR 5.3.1 deletes index files

Hi,

we are using SolR for some years now and are currently switching from SolR 3.6 to 5.3.1.
SolR 5.3.1 deletes all index files when it shuts down and there were external changes on the index-files
(in our case from a second SolR-server which produces the index).

Is this behaviour intentional?
Can SolR be configured to handle the index-files in a read-only mode?

Thanks and best regards

Andreas Moll


Vertraulichkeitshinweis
Diese Information und jeder uebermittelte Anhang beinhaltet vertrauliche Informationen und ist nur fuer die Personen oder das Unternehmen bestimmt, an welche sie tatsaechlich gerichtet ist. Sollten Sie nicht der Bestimmungsempfaenger sein, weisen wir Sie darauf hin, dass die Verbreitung, das (auch teilweise) Kopieren sowie der Gebrauch der empfangenen E-Mail und der darin enthaltenen Informationen gesetzlich verboten sein kann und gegebenenfalls Schadensersatzpflichten ausloesen kann. Sollten Sie diese Nachricht aufgrund eines Uebermittlungsfehlers erhalten haben, bitten wir Sie den Sender unverzueglich hiervon in Kenntnis zu setzen.
Sicherheitswarnung: Bitte beachten Sie, dass das Internet kein sicheres Kommunikationsmedium ist. Obwohl wir im Rahmen unseres Qualitaetsmanagements und der gebotenen Sorgfalt Schritte eingeleitet haben, um einen Computervirenbefall weitestgehend zu verhindern, koennen wir wegen der Natur des Internets das Risiko eines Computervirenbefalls dieser E-Mail nicht ausschliessen.

Re: SolR 5.3.1 deletes index files

Posted by Shawn Heisey <ap...@elyograg.org>.
On 12/17/2015 8:00 AM, Moll, Dr. Andreas wrote:
> we are using SolR for some years now and are currently switching from SolR 3.6 to 5.3.1.
> SolR 5.3.1 deletes all index files when it shuts down and there were external changes on the index-files
> (in our case from a second SolR-server which produces the index).

I have *never* seen Solr delete the index files without outside
influence.  Either there's a misconfiguration, or something in your
environment is doing the delete.

If the DirectoryFactory were changed to use RAMDirectoryFactory, then
all the data would be in memory, and that would be purged on shutdown,
because it doesn't exist anywhere else.

Assuming you're using a standard directory implementation that puts
files on the disk, there is only one feature that I'm aware of that can
automatically delete information -- it's possible to index documents
with an expiration date, so it's automatically deleted once the
expiration date is reached.  I would not expect this to delete
everything on shutdown, though.

To figure out what's going on, we will need information about your
server, exactly how you installed Solr, how it is started, how it is
stopped, etc.

Thanks,
Shawn