Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D0432200BD3 for ; Tue, 6 Dec 2016 23:22:17 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CED20160B1B; Tue, 6 Dec 2016 22:22:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 23FFA160B17 for ; Tue, 6 Dec 2016 23:22:16 +0100 (CET) Received: (qmail 15568 invoked by uid 500); 6 Dec 2016 22:22:16 -0000 Mailing-List: contact user-help@lucy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@lucy.apache.org Delivered-To: mailing list user@lucy.apache.org Received: (qmail 15551 invoked by uid 99); 6 Dec 2016 22:22:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2016 22:22:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 94649D3926 for ; Tue, 6 Dec 2016 22:22:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.019 X-Spam-Level: X-Spam-Status: No, score=-0.019 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id dGq7lKt13jq3 for ; Tue, 6 Dec 2016 22:22:13 +0000 (UTC) Received: from mail-yw0-f169.google.com (mail-yw0-f169.google.com [209.85.161.169]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id EB0635F1F4 for ; Tue, 6 Dec 2016 22:22:12 +0000 (UTC) Received: by mail-yw0-f169.google.com with SMTP id r204so285795851ywb.0 for ; Tue, 06 Dec 2016 14:22:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:reply-to:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=XjFLGCLVVQWFEk5xwnjpYYzoDsdxFs/sn4ZG9GUysYo=; b=dDHRP+V6vh+slbpfSoUh10IJuEYBoleUh1qPlgKI1hJZ4AI0kwQ8XXtHGfptxarJiJ ZD6JFXWmQ54VXsIytTQ0QwyLoTX5RgrVWEFR6AR7iAzbB1nJaZesHXW3L/DchmI8i++4 3QcM658DbAIg6tFytjPXm3ArS0ENHH5X7DVGPcGaGMv6t3Pe1QV73xDoxOwnV+9mTWSZ Z3G+fl7T096I2PJ+oTQblky3WY0VD6pYuQ8xssYFFHiCYu4SXJ4p14gLeBdDpSRTHKZI LML1Y2V14BvFrYTWINe52GQjZVj/YlzJ1DbUqoEjAKN96T2R4in8nit5QU1BaIYLsXyQ Znig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:reply-to:subject:references:to:from :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=XjFLGCLVVQWFEk5xwnjpYYzoDsdxFs/sn4ZG9GUysYo=; b=l/KYiNsYel8kDox1oOAX0L3I4ZRlpgQwZcL3Qo+tN8Y/R29fCYQAl4hiocGrjBP4l8 6u13FnBajoCaD9cVluzOMopiAqwpZO7Xnw/clMvsGmBPwdbJOlybqYBcQabQFCjSuCUI ao82oZqFAx9GTssI3M3oiYJf0rH2OuYha9yekgYRq5c57+NveJpawWlr1OWF98Lexc8Q ezIVDkatU+/xn+9gbiCK83VW1VbjnxrGClQYfPKPHPSD5AZV3LDE43DD+VCu5+qX1A33 eEDqOLutbt6ZXEXLgKR7HaL8O89qkvzqkBWjlBNbC/suKk+s0QdOWgXlT+aDJmcB5Ixh aRxg== X-Gm-Message-State: AKaTC00M8z9GKFQpsSt8DhC0y0/S1z0Rt0YM/9pleI853j15ffkoMPa5GTBSq870wzrk9g== X-Received: by 10.37.170.164 with SMTP id t33mr13195892ybi.144.1481062931634; Tue, 06 Dec 2016 14:22:11 -0800 (PST) Received: from pekmac.local (64.56.124.24.cm.sunflower.com. [24.124.56.64]) by smtp.googlemail.com with ESMTPSA id h3sm9157604ywc.6.2016.12.06.14.22.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 14:22:10 -0800 (PST) Sender: Peter Karman Reply-To: peter@peknet.com References: To: user@lucy.apache.org From: Peter Karman Message-ID: <667883c5-dfa9-e2f9-fb9f-cf9475d41f30@peknet.com> Date: Tue, 6 Dec 2016 16:22:10 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [lucy-user] RE: LUCY_Folder_Open_Out_IMP at core/Lucy/Store/Folder.c line 119 archived-at: Tue, 06 Dec 2016 22:22:18 -0000 Gupta, Rajiv wrote on 12/6/16 3:16 PM: > I thought since I'm doing read and write together I may be getting file error > so I tried to use FastUpdate method described here - > http://lucy.apache.org/docs/perl/Lucy/Docs/Cookbook/FastUpdates.html > > But now I'm more frequently getting below error. Error input 57 too high > 20161206 150630 [] S_fibonacci at core/Lucy/Index/IndexManager.c line 129 > > My use case is. While my application generating multiple logs, I'm indexing > them parallelly. To achieve this I'm storing docs at multiple locations at > each directory level. In a directory there could be multiple log files so for > that directory I'm having one indexer directory. When file get closed I > insert an end marker doc to indicate that indexing on that file is done. > However, sometimes same file get open multiple times with additional data. In > such case I search in existing indexing directory if there is any end marker > is set, if there is end marker then I delete that end marker, and index > additional data and again insert end marker. In this process I search as well > as write at the same time. > > I started seeing these type of error only after I inserted the logic of > search and deleting. Should I catch this and retry? How many docs I should > limit to commit together? It wasn't clear to me from your description, but you should be running only one indexer at time per invindex. You should also destroy any open searchers once the invindex changes (the indexer commits). You can see here how Dezi approaches this: https://metacpan.org/source/KARMAN/Dezi-App-0.014/lib/Dezi/Lucy/Searcher.pm#L406 TL;DR Dezi keeps track of a invindex header file with a UUID in it, which changes whenever the indexer finishes. Both the UUID and a md5 checksum of the header file are checked on every search, and the searcher is destroyed and a new one created if the old searcher is stale. -- Peter Karman . http://peknet.com/ . peter@peknet.com