Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36E2F4CFE for ; Fri, 10 Jun 2011 21:42:20 +0000 (UTC) Received: (qmail 49253 invoked by uid 500); 10 Jun 2011 21:42:20 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 49234 invoked by uid 500); 10 Jun 2011 21:42:19 -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: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 49227 invoked by uid 99); 10 Jun 2011 21:42:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2011 21:42:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2011 21:42:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DA38D10DCBD for ; Fri, 10 Jun 2011 21:41:58 +0000 (UTC) Date: Fri, 10 Jun 2011 21:41:58 +0000 (UTC) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Message-ID: <1138627136.12330.1307742118890.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <950149387.12296.1307741879467.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DERBY-5273) enhance SYSCS_CHECK_TABLE to check every page in the database MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Matrigali updated DERBY-5273: ---------------------------------- Issue & fix info: [Newcomer] I am marking this newcomer. Might be good as a second project working on Derby. Good for someone who wants to learn a bit about the underlying storage structure. Most of the work is figuring out what backup does and then work out a way to something similar from a call to the consistency checker. Probably means adding a new raw store interface that can be called from the consistency checker procedure similar to how backup is called. > enhance SYSCS_CHECK_TABLE to check every page in the database > ------------------------------------------------------------- > > Key: DERBY-5273 > URL: https://issues.apache.org/jira/browse/DERBY-5273 > Project: Derby > Issue Type: Improvement > Affects Versions: 10.8.1.2 > Reporter: Mike Matrigali > > The current consistency checker operates at a logical layer. It checks that indexes and base user tables are consistent. In doing so > it checks most of the pages in the database, but not all. I don't think it checks blob/clob chains. I know it does not check free pages. > One simple enhancement would be to just read every page of every file in the database into the cache. This would at least check that > all pages were valid. I believe code to do this can either be copied or shared with the backup code which at a low level reads each page > from disk into cache and then writes it to the backup directory. > DERBY-5266 looks like a case where the consistency checker missed an invalid page that backup is subsequently finding. It would > be great if anyone has an example of a database that they can post that has a similar problem so that we can test a real live problem, > rather than making one up. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira