lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <>
Subject Re: How to wait for StreamingUpdateSolrServer to finish?
Date Tue, 29 Jun 2010 16:14:03 GMT
On Tue, Jun 22, 2010 at 9:38 AM, Stephen Duncan Jr
<> wrote:
> I'm prototyping using StreamingUpdateSolrServer.  I want to send a commit
> (or optimize) after I'm done adding all of my docs, rather than wait for the
> autoCommit to kick in.  However, since StreamingUpdateSolrServer is
> multi-threaded, I can't simply call commit when I'm done, because that can
> happen before the StreamingUpdateSolrServer actually sends all the docs.  I
> would think that calling the method blockUntilFinished() before issuing the
> commit would do the trick, but I still get my commit sent before the last
> document is sent.  I've tried this with both Solr 1.4.0 and the latest
> release candidate for Solr 1.4.1.  Has anybody else had this experience?
>  Should I file a bug on blockUntilFinished()?

Yes, please do file a bug.
IMO, if someone does adds followed by a commit, that commit should
always effectively include the adds.


View raw message