Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 35697 invoked from network); 13 Dec 2004 18:43:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Dec 2004 18:43:15 -0000 Received: (qmail 64401 invoked by uid 500); 13 Dec 2004 18:43:03 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 64344 invoked by uid 500); 13 Dec 2004 18:43:03 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: Reply-To: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 64291 invoked by uid 99); 13 Dec 2004 18:43:03 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from exchange.sun.com (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 13 Dec 2004 10:43:00 -0800 Received: (qmail 7759 invoked from network); 13 Dec 2004 18:42:59 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 13 Dec 2004 18:42:59 -0000 Message-ID: <444628794.1102963379135.JavaMail.apache@nagoya> Date: Mon, 13 Dec 2004 10:42:59 -0800 (PST) From: "Suresh Thalamati (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Assigned: (DERBY-96) partial log record writes that occur because of out-of order writes need to be handled by recovery. In-Reply-To: <764546574.1102623669127.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://nagoya.apache.org/jira/browse/DERBY-96?page=history ] Suresh Thalamati reassigned DERBY-96: ------------------------------------- Assign To: Suresh Thalamati > partial log record writes that occur because of out-of order writes need to be handled by recovery. > --------------------------------------------------------------------------------------------------- > > Key: DERBY-96 > URL: http://nagoya.apache.org/jira/browse/DERBY-96 > Project: Derby > Type: New Feature > Components: Store > Versions: 10.0.2.1 > Reporter: Suresh Thalamati > Assignee: Suresh Thalamati > > Incomplete log record write that occurs because of > an out of order partial writes gets recognized as complete during > recovery if the first sector and last sector happens to get written. > Current system recognizes incompletely written log records by checking > the length of the record that is stored in the beginning and end. > Format the log records are written to disk is: > +----------+-------------+------------------+ > | length | LOG RECORD | length | > +----------+-------------+------------------+ > This mechanism works fine if sectors are written in sequential manner or > log record size is less than 2 sectors. I believe on SCSI types disks > order is not necessarily sequential, SCSI disk drives may sometimes do a > reordering of the sectors to optimize the performance. If a log record > that spans multiple disk sectors is being written to SCISI type of > devices, it is possible that first and last sector written before the > crash; If this occurs recovery system will incorrectly interpret the > log records was completely written and replay the record. This could > lead to recovery errors or data corruption. > - > This problem also will not occur if a disk drive has write cache with a > battery backup which will make sure I/O request will complete. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira