From solr-user-return-60460-apmail-lucene-solr-user-archive=lucene.apache.org@lucene.apache.org Mon Dec 5 13:11:38 2011 Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E758B79D0 for ; Mon, 5 Dec 2011 13:11:37 +0000 (UTC) Received: (qmail 70560 invoked by uid 500); 5 Dec 2011 13:11:34 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 70480 invoked by uid 500); 5 Dec 2011 13:11:34 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 70472 invoked by uid 99); 5 Dec 2011 13:11:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 13:11:34 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erickerickson@gmail.com designates 209.85.161.176 as permitted sender) Received: from [209.85.161.176] (HELO mail-gx0-f176.google.com) (209.85.161.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 13:11:29 +0000 Received: by ggnv2 with SMTP id v2so6616323ggn.35 for ; Mon, 05 Dec 2011 05:11:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=R80YuiTXosVLsLvtQRgb0N+4EZc5W3jcVFRZ0y6GT4g=; b=TwKgX7uD0hE/EXwPRyDt3sQ2VtHb8oJSuM6oq71b3h2cIzMtxjWA0gHqrHiFOZ2Q6T zUexieoKINDItoJDwm7UzgJlG/gFrUJ5stndqT43SJiZYcmKzkfhGvTfW8rtHKah3gC5 4zvwbPg/NhFLr/krMjcczS3fwasoS3rB75E+8= MIME-Version: 1.0 Received: by 10.182.221.72 with SMTP id qc8mr1718901obc.49.1323090668518; Mon, 05 Dec 2011 05:11:08 -0800 (PST) Received: by 10.182.182.66 with HTTP; Mon, 5 Dec 2011 05:11:08 -0800 (PST) In-Reply-To: <1322813477.31455.4.camel@sf050.friends> References: <1322813477.31455.4.camel@sf050.friends> Date: Mon, 5 Dec 2011 08:11:08 -0500 Message-ID: Subject: Re: Question about optimize call - Request read Timeout From: Erick Erickson To: solr-user@lucene.apache.org, tkrah@fachschaft.imn.htwk-leipzig.de Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable You can try bumping up the timeouts in your SolrJ program, the SolrServer has a bunch of timeout options. You can pretty easily tell if the optimize has carried through anyway, your index files should have been reduced substantially. But I'm pretty sure it's completing successfully. Why call it with true/true? Is your SolrJ program also responsible for queries and requires knowing about the state of the index? Best Erick On Fri, Dec 2, 2011 at 3:11 AM, Torsten Krah wrote: > Hi, > > got a question about index optimizing. > At midnight i am calling optimize(true, true) on my SolrServer instance. > However this does fail with: > > org.apache.solr.client.solrj.SolrServerException: > java.net.SocketTimeoutException: Read timed out > =A0 =A0 =A0 =A0at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHt= tpSolrServer.java:480) ~[solr-solrj-3.5.0.jar:3.5.0 1204988 - simon - 2011-= 11-22 14:55:27] > =A0 =A0 =A0 =A0at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHt= tpSolrServer.java:246) ~[solr-solrj-3.5.0.jar:3.5.0 1204988 - simon - 2011-= 11-22 14:55:27] > =A0 =A0 =A0 =A0at > org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer.request(Strea= mingUpdateSolrServer.java:209) ~[solr-solrj-3.5.0.jar:3.5.0 1204988 - simon= - 2011-11-22 14:55:27] > =A0 =A0 =A0 =A0at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(Abstra= ctUpdateRequest.java:105) ~[solr-solrj-3.5.0.jar:3.5.0 1204988 - simon - 20= 11-11-22 14:55:27] > =A0 =A0 =A0 =A0at > org.apache.solr.client.solrj.SolrServer.optimize(SolrServer.java:205) > ~[solr-solrj-3.5.0.jar:3.5.0 1204988 - simon - 2011-11-22 14:55:27] > =A0 =A0 =A0 =A0at > org.apache.solr.client.solrj.SolrServer.optimize(SolrServer.java:191) > ~[solr-solrj-3.5.0.jar:3.5.0 1204988 - simon - 2011-11-22 14:55:27] > > > The question is - may it take that long so that this request won't ever > be able to be answered and more important - is the optimize still done > "correctly" on the server side and can i ignore those Readtimeout > Exception? > > Whats the right way here to do the optimize? > > regards > > Torsten > > PS: I am using solr 3.5.0.