Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D4996905D for ; Wed, 14 Dec 2011 13:24:03 +0000 (UTC) Received: (qmail 99907 invoked by uid 500); 14 Dec 2011 13:24:00 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 99795 invoked by uid 500); 14 Dec 2011 13:24:00 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 99734 invoked by uid 99); 14 Dec 2011 13:24:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 13:24:00 +0000 X-ASF-Spam-Status: No, hits=-2001.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 13:23:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B5B18112A73 for ; Wed, 14 Dec 2011 13:23:30 +0000 (UTC) Date: Wed, 14 Dec 2011 13:23:30 +0000 (UTC) From: "Erick Erickson (Resolved) (JIRA)" To: dev@lucene.apache.org Message-ID: <1529237544.10855.1323869010745.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1117471365.8832.1323825870606.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (SOLR-2967) StreamingUpdateSolrServer Error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-2967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Erick Erickson resolved SOLR-2967. ---------------------------------- Resolution: Not A Problem Since this is against 1.4 there's no chance it'll be fixed in that version, plus I think the user can avoid the problem by not committing as often. Bidisha: If my suggestion doesn't work, please raise the issue on the user's list. > StreamingUpdateSolrServer Error > ------------------------------- > > Key: SOLR-2967 > URL: https://issues.apache.org/jira/browse/SOLR-2967 > Project: Solr > Issue Type: Bug > Components: update > Affects Versions: 1.4 > Environment: Unix > Reporter: Bidisha Banerjee > Priority: Minor > > Hi,I am using Solr-1.4.0 version. Whenever I am trying you run a full Solr index, I get intermittent error as shown below and the numdocs in Statistics section does not reflect the exact count of index documents.(The amount of data is 1004384). Sometimes I get this error and sometimes not. > The queue size is 200 and thread is 20. I initialize StreamingUpdateSolr server as: > servers.add(new StreamingUpdateSolrServer(serverUrl,200,20)); > I am using the following code for commit: > For StreamingUpdateSolrServer: > ------------------------------ > //UpdateRequest req; > //req.setAction(ACTION.COMMIT, true, false); > // StreamingUpdateSolrServer.request(req); > For SolrServer: > ------------------ > //UpdateResponse response = server.add(documents); > //UpdateResponse commitResp = server.commit(); > The error: > --------------- > ERROR StreamingUpdateSolrServer:259 - error > java.lang.Exception: Service Temporarily Unavailable > Service Temporarily Unavailable > request: http://>/solr/testCOre/update > at org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer$Runner.run(StreamingUpdateSolrServer.java:161) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:595) > ************************************************************************************************* > Also I get the following error in /update section of Solr admin page: > handlerStart : 1321903404556 > requests : 68200 > errors : 806 > timeouts : 0 > totalTime : 707909202 > avgTimePerRequest : 10379.9 > avgRequestsPerSecond : 0.0355129 > ************************************************************************************************ > Sometimes I get this error: > 12:24:13,066 INFO HttpMethodDirector:439 - I/O exception (java.net.SocketException) caught when processing request: Broken pipe > 12:24:13,066 INFO HttpMethodDirector:445 - Retrying request > 12:24:13,067 ERROR StreamingUpdateSolrServer:259 - error > org.apache.commons.httpclient.ProtocolException: Unbuffered entity enclosing request can not be repeated. > at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:487) > at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114) > at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) > at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) > at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) > at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) > at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) > at org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer$Runner.run(StreamingUpdateSolrServer.java:153) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) > at java.lang.Thread.run(Thread.java:595) > It would be great if you could let me know a probable fix for this. It is also difficult to debug as the error is intermittent. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org