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 4B3474AC4 for ; Fri, 10 Jun 2011 21:38:22 +0000 (UTC) Received: (qmail 36062 invoked by uid 500); 10 Jun 2011 21:38:20 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 35997 invoked by uid 500); 10 Jun 2011 21:38:20 -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 35785 invoked by uid 99); 10 Jun 2011 21:38:20 -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:38:20 +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:38:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 72FD410DAF7 for ; Fri, 10 Jun 2011 21:37:59 +0000 (UTC) Date: Fri, 10 Jun 2011 21:37:59 +0000 (UTC) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Message-ID: <950149387.12296.1307741879467.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (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 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