Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 76173 invoked from network); 4 Nov 2007 00:17:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Nov 2007 00:17:11 -0000 Received: (qmail 4564 invoked by uid 500); 4 Nov 2007 00:16:57 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 4508 invoked by uid 500); 4 Nov 2007 00:16:57 -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 4496 invoked by uid 99); 4 Nov 2007 00:16:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2007 17:16:57 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.86.89.63] (HELO elasmtp-junco.atl.sa.earthlink.net) (209.86.89.63) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Nov 2007 00:16:58 +0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=ix.netcom.com; b=sRsOfHyhWWEFVUO2bfO4nAZ47XjYO9uEO/sXcPc4dzxIg76c/xbAfrtkB4tKBt/Z; h=Received:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer:X-ELNK-Trace:X-Originating-IP; Received: from [69.209.73.68] (helo=[192.168.1.64]) by elasmtp-junco.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1IoTAL-0001Zk-FK for java-dev@lucene.apache.org; Sat, 03 Nov 2007 20:16:37 -0400 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <472D0D8F.8070701@gmail.com> References: <21643215.1194067491098.JavaMail.jira@brutus> <472D0942.8000403@gmail.com> <472D0D8F.8070701@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <4D0C67CE-F142-4420-A06B-699C5D573830@ix.netcom.com> Content-Transfer-Encoding: 7bit From: robert engels Subject: Re: [jira] Resolved: (LUCENE-1044) Behavior on hard power shutdown Date: Sat, 3 Nov 2007 19:16:39 -0500 To: java-dev@lucene.apache.org X-Mailer: Apple Mail (2.752.3) X-ELNK-Trace: 33cbdd8ed9881ca8776432462e451d7bd15d05d9470ff710f98d7afda05fd722ed775e551e527df7350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 69.209.73.68 X-Virus-Checked: Checked by ClamAV on apache.org See my previous email. I have written several 'atomic' ACID systems in java. It is VERY EASY TO DO. Read any introductory (academic) book on database systems. On Nov 3, 2007, at 7:08 PM, Mark Miller wrote: > Derby does not guarantee atomicity? Other java DB's? I thought they > did, but perhaps not. You cannot rig a simple system with some sort > of rename call? > > If a hard power shutdown interrupted, on the next start the system > could ideally be left in a condition that uses the previous commit > point, or recognize the latest commit failed, clean it up, and go > back to the previous commit point. There must be ways to do it that > don't rely on a buffer being fully flushed, but rather on atomic > file system operations (of which there must be some that can be > counted on in java?). > > Chris Hostetter wrote: >> : Is the new autocommit=false code atomic (the new check point is >> successfully >> : made and moved to or its not)? If not I imagine it could be made >> to be without >> : too much work right? >> >> No matter what work we do in Java code to try and garuntee >> atomicity, the JVM can't garuntee that File IO buffers are flushed >> unless the JVM is shutdown cleanly, so i don't see how we could >> possibly make any claims >> of atomicity in the event of hard process (or OS) termination. >> >> i'd be happy to be proven wrong by someone who knows more about >> IO, filesystems, and the JVM Specification. >> >> >> >> -Hoss >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-dev-help@lucene.apache.org >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org