Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 22880 invoked from network); 14 Sep 2010 00:14:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Sep 2010 00:14:12 -0000 Received: (qmail 30000 invoked by uid 500); 14 Sep 2010 00:14:12 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 29937 invoked by uid 500); 14 Sep 2010 00:14:11 -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 29930 invoked by uid 99); 14 Sep 2010 00:14:11 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Sep 2010 00:14:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Sep 2010 00:13:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8E0DW16007624 for ; Tue, 14 Sep 2010 00:13:33 GMT Message-ID: <2743062.168051284423212937.JavaMail.jira@thor> Date: Mon, 13 Sep 2010 20:13:32 -0400 (EDT) From: "Lily Wei (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4771) Continue investigation of automatic creation/update of index statistics In-Reply-To: <27013377.329781281704596759.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lily Wei updated DERBY-4771: ---------------------------- Attachment: derby.log error-stacktrace.out Thanks Kristian for the prompt reply and explanation. Good eyes. I add the "CHECKING" so it is easier for me to see what is going on for now. if (tableDescriptor.getTableType() == TableDescriptor.BASE_TABLE_TYPE && tableDescriptor.getTotalNumberOfIndexes() > 0) { System.out.println("CHECKING: " + tableDescriptor.getQualifiedName()); long rows = baseRowCount(); if (statisticsForTable) { tableDescriptor.markForIndexStatsUpdate(rows); } else if (rows > 100) { // Only create statistics if there are "enough" rows. tableDescriptor.markForIndexStatsUpdate(-1); } } I delete all existing directories before I run the test suites. I run the testOSReadOnly and it failed as I run it individually. I am attaching the error-stacktrace.out and derby.log and hope it is helpful to you. With database status, I mean it allows us to know the state of the database. i.e. read-only status. > Continue investigation of automatic creation/update of index statistics > ----------------------------------------------------------------------- > > Key: DERBY-4771 > URL: https://issues.apache.org/jira/browse/DERBY-4771 > Project: Derby > Issue Type: Task > Reporter: Kristian Waagan > Attachments: derby-4771-1a-prototype_code_dump.diff, derby-4771-1a-prototype_code_dump.stat, derby-4771-1b-prototype_code_dump.diff, derby.log, error-stacktrace.out, rjall.out, rjall.out > > > Work was started to improve Derby's handling of index statistics. This issue tracks further discussion and work for this task. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.