db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Waagan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2992) getBinaryStream returns incorrect result (truncated value) if underlying blob is deleted
Date Wed, 10 Feb 2010 17:16:28 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Kristian Waagan updated DERBY-2992:

    Issue & fix info: [High Value Fix, Repro attached]  (was: [Repro attached, Patch Available,
High Value Fix])
            Assignee: Kristian Waagan

Back-porting this fix requires some manual work, due to conflicts.
Does anyone feel strong about back-porting the fix?

> 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:,,,,
>            Reporter: Kathey Marsden
>            Assignee: Kristian Waagan
>         Attachments: derby-2992-1a-throw_exception_on_eof.diff, derby-2992-1b-throw_exception_on_eof.diff,
> 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.

View raw message