lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Duncan Jr <stephen.dun...@gmail.com>
Subject Re: How to wait for StreamingUpdateSolrServer to finish?
Date Tue, 29 Jun 2010 15:07:16 GMT
On Tue, Jun 22, 2010 at 9:38 AM, Stephen Duncan Jr <stephen.duncan@gmail.com
> 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()?
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>

Is everyone using StreamingUpdateSolrServer relying on autocommit?

-- 
Stephen Duncan Jr
www.stephenduncanjr.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message