Re: AW: AW: AW: transactions@Solr(J)
On 1/21/2015 9:15 AM, Clemens Wyss DEV wrote: What I meant is: If I do SolrServer#rollback after 11 documents were added, will then only 1 or all 11 docments that have been added in the SolrServer-tranascation/context? If autoCommit is set to 10 docs and openSearcher is true, it would roll back one document, assuming that the 11th document didn't make it into the index before the commit actually started. I'm not sure if the autoCommit settings are perfectly atomic, or if there would be enough of a time gap to allow a few more documents to make it in. If you added the documents one at a time, I could be sure that the rollback would be one document. If openSearcher is false, I'm not sure whether it would do one or 11. I just don't know enough about the underlying API. Thanks, Shawn
AW: AW: AW: transactions@Solr(J)
What I meant is: If I do SolrServer#rollback after 11 documents were added, will then only 1 or all 11 docments that have been added in the SolrServer-tranascation/context? -Ursprüngliche Nachricht- Von: Shawn Heisey [mailto:apa...@elyograg.org] Gesendet: Mittwoch, 21. Januar 2015 15:24 An: solr-user@lucene.apache.org Betreff: Re: AW: AW: transactions@Solr(J) On 1/20/2015 11:42 PM, Clemens Wyss DEV wrote: But then what happens if: Autocommit is set to 10 docs and I add 11 docs and then decide (due to an exception?) to rollback. Will only one (i.e. the last added) document be rollen back? The way I understand the low-level architecture, yes -- assuming that all 11 documents actually got indexed. If the exception happened because of document 5 was badly formed, only documents 1-4 will have been indexed, and in that case, all four of them would get rolled back. Thanks, Shawn