Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 7011 invoked from network); 12 Nov 2007 19:48:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2007 19:48:52 -0000 Received: (qmail 55651 invoked by uid 500); 12 Nov 2007 19:48:33 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 55600 invoked by uid 500); 12 Nov 2007 19:48:33 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 55589 invoked by uid 99); 12 Nov 2007 19:48:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 11:48:33 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yseeley@gmail.com designates 64.233.184.231 as permitted sender) Received: from [64.233.184.231] (HELO wr-out-0506.google.com) (64.233.184.231) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 19:48:37 +0000 Received: by wr-out-0506.google.com with SMTP id c46so585216wra for ; Mon, 12 Nov 2007 11:47:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=Af/E3BvpVkLrVCuceF3tRkk4lv820S+4le4nHSqN8ok=; b=RmYlpGhPlEng9IN+xdYxBZks4B8cD3YFMWrcPNJcaPk3nQn+C5bbhe9V4ycsgrI1jEQ01jBlFaDy03wMpevCwRDoYvyKOwO2bsUqzoIXiyklAOdp2Yt3qjpRhyHTS0HbrjfcyGWcrLAcbyYaTtvLy9prHz0GPqSmNGhtfTm+kfA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=WNemrppfdl9HFvGTw5H9PNWzVLcI6RUtQkjo6SMFPOfha6s4brPko/cproD6C51FfNCnjl+U7H9cYI3s04tmlGmi3KO0EUEThzvMdiSBaryJMYm+sNeVym9PX4V3O1/vENnbF9HH0gtDprZSS1RIAiSrjaTJ3lvMBpJD34WcD58= Received: by 10.142.115.10 with SMTP id n10mr1280930wfc.1194896874550; Mon, 12 Nov 2007 11:47:54 -0800 (PST) Received: by 10.143.165.13 with HTTP; Mon, 12 Nov 2007 11:47:54 -0800 (PST) Message-ID: Date: Mon, 12 Nov 2007 14:47:54 -0500 From: "Yonik Seeley" Sender: yseeley@gmail.com To: java-dev@lucene.apache.org Subject: Re: [jira] Commented: (LUCENE-1044) Behavior on hard power shutdown In-Reply-To: <15B9A5C1-D7E3-4AF4-BA9C-D4B5E065DE71@ix.netcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <32259336.1194891351173.JavaMail.jira@brutus> <47389CC5.90501@apache.org> <15B9A5C1-D7E3-4AF4-BA9C-D4B5E065DE71@ix.netcom.com> X-Google-Sender-Auth: fb6ea655b1a63ae9 X-Virus-Checked: Checked by ClamAV on apache.org On Nov 12, 2007 1:41 PM, robert engels wrote: > Would it not be simpler to pure Java... > > Add the descriptor that needs to be sync'd (and closed) to a Queue. > Start a Thread to sync/close descriptors. > > In commit(), wait for all sync threads to terminate using join(). This would also need to be hooked in with file deletion (since a file could be created and deleted before commit()). -Yonik --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org