Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 49796 invoked from network); 1 Jul 2008 21:33:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jul 2008 21:33:36 -0000 Received: (qmail 95315 invoked by uid 500); 1 Jul 2008 21:33:37 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 95279 invoked by uid 500); 1 Jul 2008 21:33:37 -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 95268 invoked by uid 99); 1 Jul 2008 21:33:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 14:33:37 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 21:32:54 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1D3BE234C154 for ; Tue, 1 Jul 2008 14:32:45 -0700 (PDT) Message-ID: <1973676673.1214947965118.JavaMail.jira@brutus> Date: Tue, 1 Jul 2008 14:32:45 -0700 (PDT) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3749) in holdable cursor selecting multiple rows with streaming blobs and clobs a commit may cause later row's streams to be broken In-Reply-To: <1525388513.1214947245061.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Matrigali updated DERBY-3749: ---------------------------------- I anyone gets a chance to look at this the first thing I would track down is if this is a bulk fetch issue. By that I mean are N streams getting created for N rows before even the first is returned to the user. For performance bulk fetch is the usual way language gets rows out of the store. Then when the commit happens each of these "open" streams gets closed. Reading through the code I don't think these streams have any support for holdability. Most of the hodability support is located in the language and access layer. For instance in the case of an access fetch loop there is code everytime the loop is reentered to check if it is a holdable cursor and if so to reopen the underlying resource. My assumption is that this has been broken for many releases, but have not had a chance to check yet. > in holdable cursor selecting multiple rows with streaming blobs and clobs a commit may cause later row's streams to be broken > ----------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-3749 > URL: https://issues.apache.org/jira/browse/DERBY-3749 > Project: Derby > Issue Type: Bug > Affects Versions: 10.5.0.0 > Reporter: Mike Matrigali > Priority: Minor > Attachments: Derby3650Test.java > > > In a query returning multiple rows from a table, where later rows in the select loop after the commit contain streaming clobs or blobs a commit may > attempts to get at those streams after the commit to fail with a: > 3)java.sql.SQLException: The data in this BLOB or CLOB is no longer available. > The BLOB/CLOB's transaction may be committed, or its connection is closed. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.