Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 43828 invoked from network); 7 Jul 2010 20:39:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Jul 2010 20:39:18 -0000 Received: (qmail 9537 invoked by uid 500); 7 Jul 2010 20:39:18 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 9515 invoked by uid 500); 7 Jul 2010 20:39:18 -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 9508 invoked by uid 99); 7 Jul 2010 20:39:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jul 2010 20:39:18 +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; Wed, 07 Jul 2010 20:39:15 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o67KcrV8004711 for ; Wed, 7 Jul 2010 20:38:54 GMT Message-ID: <24117087.245431278535133938.JavaMail.jira@thor> Date: Wed, 7 Jul 2010 16:38:53 -0400 (EDT) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-2992) getBinaryStream returns incorrect result (truncated value) if underlying blob is deleted In-Reply-To: <33451220.1186152592845.JavaMail.jira@brutus> 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-2992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Matrigali resolved DERBY-2992. ----------------------------------- Assignee: Kristian Waagan (was: Mike Matrigali) Fix Version/s: 10.5.3.1 Resolution: Fixed backported to 10.5. resolving as fixed and resetting original owner. > getBinaryStream returns incorrect result (truncated value) if underlying blob is deleted > ---------------------------------------------------------------------------------------- > > Key: DERBY-2992 > URL: https://issues.apache.org/jira/browse/DERBY-2992 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.2.2.0, 10.3.1.4, 10.4.1.3, 10.5.3.0, 10.6.1.0 > Reporter: Kathey Marsden > Assignee: Kristian Waagan > Fix For: 10.5.3.1, 10.6.1.0 > > Attachments: derby-2992-1a-throw_exception_on_eof.diff, derby-2992-1b-throw_exception_on_eof.diff, TruncatedBlob.java > > > If getBinaryStream is reading a value (READ_UNCOMMITTED) and the row is deleted by another connection, a truncated value will be returned without error. I believe instead either the whole value or an IOException should occur. > With 10.2 and higher with the repro attahed we get: > > java TruncatedBlob > Embedded: > Read 32669 bytes > 0 rows in BLOBCLOB > With 10.1 > Embedded: > Read 40000 bytes (OK) > 0 rows in BLOBCLOB > Note network server returns the full value for both 10.1 and 10.2 but gives a lock timeout for 10.2+. I will file a separate issue for that. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.