Solr commits automatically on appserver shutdown

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Solr commits automatically on appserver shutdown

Noble Paul നോബിള്‍  नोब्ळ्
hi,
If my appserver fails during an update or if I do a planned shutdown
without wanting to commit my changes Solr does not allow it?.
It commits whatever unfinished changes.
Is it by design?
Can I change this behavior?
--Noble
Reply | Threaded
Open this post in threaded view
|

Re: Solr commits automatically on appserver shutdown

Yonik Seeley-2
On Wed, Mar 26, 2008 at 10:18 AM, Noble Paul നോബിള്‍ नोब्ळ्
<[hidden email]> wrote:
>  If my appserver fails during an update or if I do a planned shutdown
>  without wanting to commit my changes Solr does not allow it?.
>  It commits whatever unfinished changes.
>  Is it by design?
>  Can I change this behavior?

You can't currently avoid it.
With the newer changes in Lucene though, it should be possible I think.

-Yonik
Reply | Threaded
Open this post in threaded view
|

Re: Solr commits automatically on appserver shutdown

Noble Paul നോബിള്‍  नोब्ळ्
Can I make an API call to remove the stale indexsearcher so that the
documents do not get committed?

Basically what I need is a 'rollback'  feature
--Noble

On Wed, Mar 26, 2008 at 9:08 PM, Yonik Seeley <[hidden email]> wrote:

>
> On Wed, Mar 26, 2008 at 10:18 AM, Noble Paul നോബിള്‍ नोब्ळ्
>  <[hidden email]> wrote:
>  >  If my appserver fails during an update or if I do a planned shutdown
>  >  without wanting to commit my changes Solr does not allow it?.
>  >  It commits whatever unfinished changes.
>  >  Is it by design?
>  >  Can I change this behavior?
>
>  You can't currently avoid it.
>  With the newer changes in Lucene though, it should be possible I think.
>
>  -Yonik
>
Reply | Threaded
Open this post in threaded view
|

Re: Solr commits automatically on appserver shutdown

Yonik Seeley-2
On Thu, Mar 27, 2008 at 12:11 AM, Noble Paul നോബിള്‍ नोब्ळ्
<[hidden email]> wrote:
> Can I make an API call to remove the stale indexsearcher so that the
>  documents do not get committed?
>
>  Basically what I need is a 'rollback'  feature

This should be possible when Solr starts using Lucene's update,
delete, and deleteByQuery features on the IndexWriter.

-Yonik
Reply | Threaded
Open this post in threaded view
|

Re: Solr commits automatically on appserver shutdown

Noble Paul നോബിള്‍  नोब्ळ्
hi,
I am willing to work on this if you can give me some pointers as to
where to start?


On Thu, Mar 27, 2008 at 9:48 AM, Yonik Seeley <[hidden email]> wrote:

> On Thu, Mar 27, 2008 at 12:11 AM, Noble Paul നോബിള്‍ नोब्ळ्
>
> <[hidden email]> wrote:
>
> > Can I make an API call to remove the stale indexsearcher so that the
>  >  documents do not get committed?
>  >
>  >  Basically what I need is a 'rollback'  feature
>
>  This should be possible when Solr starts using Lucene's update,
>  delete, and deleteByQuery features on the IndexWriter.
>
>  -Yonik
>



--
--Noble Paul
Reply | Threaded
Open this post in threaded view
|

Re: Solr commits automatically on appserver shutdown

Yonik Seeley-2
On Fri, Mar 28, 2008 at 2:05 PM, Noble Paul നോബിള്‍ नोब्ळ्
<[hidden email]> wrote:
> hi,
>  I am willing to work on this if you can give me some pointers as to
>  where to start?

DirectUpateHandler2 implements it's own duplicates removal, which is
no longer necessary.

-Yonik