On 6/27/2013 9:32 AM, Michael Della Bitta wrote:
Are you using blockUntilFinished() and/or shutdown()?
One of the things to note is that a commit is just another "document," so
writing a commit into the queue of the ConcurrentUpdateSolrServer isn't
enough to get it flushed out.
ConcurrentUpdateSolrServer contains this little bit of code:
// this happens for commit...
if (req.getDocuments() == null || req.getDocuments().isEmpty()) {
blockUntilFinished();
return server.request(request);
}
Unless the comment is incorrect or there's a bug, sending a commit()
will inherently do the blockUntilFinished().
Thanks,
Shawn