Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72F29D8CA for ; Tue, 14 Aug 2012 12:11:43 +0000 (UTC) Received: (qmail 85325 invoked by uid 500); 14 Aug 2012 12:11:41 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 85192 invoked by uid 500); 14 Aug 2012 12:11:40 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 84929 invoked by uid 99); 14 Aug 2012 12:11:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 12:11:38 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of SRS0=WZmi+o=GO=basetechnology.com=jack@yourhostingaccount.com designates 65.254.253.77 as permitted sender) Received: from [65.254.253.77] (HELO mailout09.yourhostingaccount.com) (65.254.253.77) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2012 12:11:30 +0000 Received: from mailscan02.yourhostingaccount.com ([10.1.15.2] helo=mailscan02.yourhostingaccount.com) by mailout09.yourhostingaccount.com with esmtp (Exim) id 1T1Fxl-0005jc-JH for java-user@lucene.apache.org; Tue, 14 Aug 2012 08:11:09 -0400 Received: from impout01.yourhostingaccount.com ([10.1.55.1] helo=impout01.yourhostingaccount.com) by mailscan02.yourhostingaccount.com with esmtp (Exim) id 1T1Fxl-0002um-D2 for java-user@lucene.apache.org; Tue, 14 Aug 2012 08:11:09 -0400 Received: from authsmtp17.yourhostingaccount.com ([10.1.18.17]) by impout01.yourhostingaccount.com with NO UCE id mcB91j0050N5tVm01cB9Rk; Tue, 14 Aug 2012 08:11:09 -0400 X-Authority-Analysis: v=2.0 cv=I97ntacg c=1 sm=1 a=PHQHB1QSaEYgcU2qnZkzMw==:17 a=aQzbgH187woA:10 a=URimQgoZFTgA:10 a=3jZET7lWBKwA:10 a=IkcTkHD0fZMA:10 a=jvYhGVW7AAAA:8 a=Pe7RWEWbkz0A:10 a=mV9VRH-2AAAA:8 a=_GjVPlZCAAAA:8 a=9qaBBSRfgRlBl1H6REkA:9 a=QEXdDO2ut3YA:10 a=ayZJSlMgWVhgG3n+ZwULew==:117 X-EN-OrigOutIP: 10.1.18.17 X-EN-IMPSID: mcB91j0050N5tVm01cB9Rk Received: from 207-237-102-116.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com ([207.237.102.116] helo=JackKrupansky) by authsmtp17.yourhostingaccount.com with esmtpa (Exim) id 1T1Fxl-0002SG-3e for java-user@lucene.apache.org; Tue, 14 Aug 2012 08:11:09 -0400 Message-ID: From: "Jack Krupansky" To: References: <20120814114536.209050@gmx.net> In-Reply-To: <20120814114536.209050@gmx.net> Subject: Re: Solr adding Documents / Commit in different Threads Date: Tue, 14 Aug 2012 08:11:07 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-EN-UserInfo: e0a4b55451ed9f27313ebf02e3d4348d:fc4a93e1349e680c52bdd723c0ab3ef6 X-EN-AuthUser: jack@basetechnology.com Sender: "Jack Krupansky" X-EN-OrigIP: 207.237.102.116 X-EN-OrigHost: 207-237-102-116.c3-0.nyr-ubr1.nyr.ny.cable.rcn.com X-Virus-Checked: Checked by ClamAV on apache.org Try sending only 100 or so (or maybe even only 20) of the documents at a time, and only send commit with the last batch. Sometimes network-related components along the way have trouble dealing with very large requests unless carefully configured. In other words, maybe you can find a way to make such a large request work, but it may not be worth the effort. -- Jack Krupansky -----Original Message----- From: Ralf Heyde Sent: Tuesday, August 14, 2012 7:45 AM To: java-user@lucene.apache.org Subject: Solr adding Documents / Commit in different Threads Hello, we currently facing a problem which may lost updates for some documents during adding / comitting. The infrastructure: we have a main solr, which gets documents and distribute them to a lot of slaves. The situation: we have a Job, which runs scheduled every minute (no run, if a previous job is not ended), looks for new / modified documents and adds, deletes and finally commits them to the Main Solr Server. They are added due SolrServer.add(Collection). This Collection contains up to 10.000 documents - so the request could take some time. Additionally we have a second job, which only runs commits every minute. Today i found a stacktrace in our logs. Can someone tell me, whether this is a problem? Is it possible that these two processes conflict each other (e.g. lost document updates). Regards, Ralf ---------- Stracktrace ----------- 2012-08-14 10:05:50,141 WARN ... org.apache.solr.handler.ReplicationHandler$FileStream.write(ReplicationHandler.java:1066): Exception while writing response for params: checksum=true&wt=filestream&indexversion=1330453083759&file=_eah.frq&command=filecontent ClientAbortException: java.io.IOException at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:373) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:356) at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:396) at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:385) at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:93) at org.apache.solr.common.util.FastOutputStream.write(FastOutputStream.java:87) at org.apache.solr.handler.ReplicationHandler$FileStream.write(ReplicationHandler.java:1054) at org.apache.solr.handler.ReplicationHandler$3.write(ReplicationHandler.java:914) at org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:336) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:265) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at de.zalando.solr.shared.experimentalfeature.ExperimentalFeatureFilter.doFilter(ExperimentalFeatureFilter.java:28) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:257) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1764) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException at org.apache.coyote.http11.InternalAprOutputBuffer.flushBuffer(InternalAprOutputBuffer.java:208) at org.apache.coyote.http11.InternalAprOutputBuffer$SocketOutputBuffer.doWrite(InternalAprOutputBuffer.java:238) at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:119) at org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:190) at org.apache.coyote.Response.doWrite(Response.java:533) at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:368) ... 27 more --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org