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 9DAD6925E for ; Tue, 21 Feb 2012 08:10:59 +0000 (UTC) Received: (qmail 98598 invoked by uid 500); 21 Feb 2012 08:10:59 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 98547 invoked by uid 500); 21 Feb 2012 08:10:59 -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 98467 invoked by uid 99); 21 Feb 2012 08:10:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 08:10:59 +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; Tue, 21 Feb 2012 08:10:55 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F0C1A31DCD7 for ; Tue, 21 Feb 2012 08:10:34 +0000 (UTC) Date: Tue, 21 Feb 2012 08:10:34 +0000 (UTC) From: "Mike Matrigali (Updated) (JIRA)" To: derby-dev@db.apache.org Message-ID: <1416663751.5063.1329811834987.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DERBY-4086) BTreeScan.isCurrentPositionDeleted() should return true if the row has been purged 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-4086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Matrigali updated DERBY-4086: ---------------------------------- Labels: derby_triage10_5_2 derby_triage10_9 (was: derby_triage10_5_2) Triaged for 10.9, no changes. > BTreeScan.isCurrentPositionDeleted() should return true if the row has been purged > ---------------------------------------------------------------------------------- > > Key: DERBY-4086 > URL: https://issues.apache.org/jira/browse/DERBY-4086 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.4.2.0 > Reporter: Knut Anders Hatlen > Priority: Minor > Labels: derby_triage10_5_2, derby_triage10_9 > > Currently, BTreeScan.isCurrentPositionDeleted() returns false if the current position has been purged (that is, if reposition(scan_position, false) returns false). Since a row must be deleted in order to be purged, I believe it is more correct if isCurrentPositionDeleted() returns true in this case. > (I'm not sure if it is possible to exercise this code path in the current code. It is not exercised by any of the existing regression tests. Its only caller, TableScanResultSet.getCurrentRow(), also calls doesCurrentPositionQualify() which correctly returns false in this case, and it therefore skips the row and hides this problem. So even if the code can be exercised, it shouldn't cause any observable problems at this time.) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira