Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 85556 invoked from network); 30 Apr 2004 12:51:04 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 30 Apr 2004 12:51:04 -0000 Received: (qmail 67140 invoked by uid 500); 30 Apr 2004 12:50:52 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 67103 invoked by uid 500); 30 Apr 2004 12:50:52 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 66952 invoked from network); 30 Apr 2004 12:50:50 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 30 Apr 2004 12:50:50 -0000 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BJXTd-0002yo-00 for ; Fri, 30 Apr 2004 14:50:50 +0200 Received: from mail.idoox.com ([194.213.203.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Apr 2004 14:50:49 +0200 Received: from literakl by mail.idoox.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Apr 2004 14:50:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: lucene-user@jakarta.apache.org From: Leos Literak Subject: Re: potential synchronization problem Date: Fri, 30 Apr 2004 14:10:04 +0200 Lines: 19 Message-ID: References: <1083306765.18579.12.camel@localhost.localdomain> <20040430115130.99677.qmail@web12703.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: mail.idoox.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: cs, en-us, en In-Reply-To: <20040430115130.99677.qmail@web12703.mail.yahoo.com> Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Otis Gospodnetic wrote: > Yes. > I suggest you devise a 'index request queue' mechanism to handle > situations like this. This can probably be made quite generic (i.e. > not Lucene and not indexing specific). How you go about implementing > this is up to. I handle this with script, which 1\ generates new index to temporary directory 2\ removes directory with old index 3\ renames temporary directory to standard location unfortunatelly this doesn't garantee atomicity, so I can find in logs exceptions, when user performed search in 2\ or 3\ steps. Because step 1\ takes ten minutes, while 2\ and 3\ several seconds at most, I am happy with this solution. Leos --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org