On Tue, Dec 14, 2010 at 10:37 AM, Shawn Heisey <s...@elyograg.org> wrote:
> It's supposed to take care of removing the old indexes on its own - when
> everything is working, it builds an index.<timestamp> directory, replicates,
> swaps that directory in to replace index, and deletes the directory with the
> timestamp.  I have not been able to figure out what circumstances make this
> process break down and cause Solr to simply use the timestamp directory
> as-is, without deleting the old one.  For me, it works most of the time.
>  I'm running 1.4.1.

Interesting. I'm also running 1.4.1. Looking more closely at my index
directories and my update strategy, I see a pattern.

I run delta updates into solr every 20 minutes during the day into my
"live" replicated core. Each time this happens, of course, the index
version and generation is incremented.

Once per day in the morning, I run a full index + optimize into an "on
deck" core. When this is complete, I swap the "on deck" with the live
core. A side-effect of this is that the version number / generation of
the live index just went backwards, since the "on deck" core does not
receive the 3x-per-hour deltas during the rest of the day.

The index directories that hang around have timestamps corresponding
to the daily full update, when the version number goes backward.

Reply via email to