You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2007/05/31 13:32:20 UTC

[jira] Created: (DERBY-2734) LOB finalizers may close the underlying container while there are open streams

LOB finalizers may close the underlying container while there are open streams
------------------------------------------------------------------------------

                 Key: DERBY-2734
                 URL: https://issues.apache.org/jira/browse/DERBY-2734
             Project: Derby
          Issue Type: Bug
          Components: JDBC, Regression Test Failure, Store
    Affects Versions: 10.3.0.0
            Reporter: Knut Anders Hatlen
            Priority: Minor


Seen in the Tinderbox: http://dbtg.thresher.com/derby/test/tinderbox_trunk16/jvm1.6/testing/testlog/SunOS-5.10_i86pc-i386/542818-org.apache.derbyTesting.functionTests.suites.All_diff.txt

The code in LobStreamsTest that failed, looks like this:

        InputStream lStream = rs3.getClob(1).getAsciiStream();
        assertTrue("FAIL - Clob and file contents do not match",
                compareLob2File(fStream, lStream));

I think the problem is that the Clob object is garbage collected before the stream has been exhausted, and EmbedClob.finalize() closes the container. I think this affects earlier releases as well, but I'm only marking it as a 10.3 issue for now since I haven't verified it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (DERBY-2734) LOB finalizers may close the underlying container while there are open streams

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Waagan resolved DERBY-2734.
------------------------------------

    Fix Version/s: 10.3.2.1
       Resolution: Fixed

Resolving as fixed.
I think the issue got fixed as part of DERBY-2646 ("Cleanup of Clob control/support structures"), where the finalizer was removed.

> LOB finalizers may close the underlying container while there are open streams
> ------------------------------------------------------------------------------
>
>                 Key: DERBY-2734
>                 URL: https://issues.apache.org/jira/browse/DERBY-2734
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC, Store
>    Affects Versions: 10.3.1.4
>            Reporter: Knut Anders Hatlen
>            Priority: Minor
>             Fix For: 10.3.2.1
>
>
> Seen in the Tinderbox: http://dbtg.thresher.com/derby/test/tinderbox_trunk16/jvm1.6/testing/testlog/SunOS-5.10_i86pc-i386/542818-org.apache.derbyTesting.functionTests.suites.All_diff.txt
> The code in LobStreamsTest that failed, looks like this:
>         InputStream lStream = rs3.getClob(1).getAsciiStream();
>         assertTrue("FAIL - Clob and file contents do not match",
>                 compareLob2File(fStream, lStream));
> I think the problem is that the Clob object is garbage collected before the stream has been exhausted, and EmbedClob.finalize() closes the container. I think this affects earlier releases as well, but I'm only marking it as a 10.3 issue for now since I haven't verified it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-2734) LOB finalizers may close the underlying container while there are open streams

Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501931 ] 

Kristian Waagan commented on DERBY-2734:
----------------------------------------

If you see this error again, please tell!

The code that might have caused this error has been rewritten, but I do not know if the problem has been solved for sure.
At least the finalizer no longer exists.

> LOB finalizers may close the underlying container while there are open streams
> ------------------------------------------------------------------------------
>
>                 Key: DERBY-2734
>                 URL: https://issues.apache.org/jira/browse/DERBY-2734
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC, Regression Test Failure, Store
>    Affects Versions: 10.3.0.0
>            Reporter: Knut Anders Hatlen
>            Priority: Minor
>
> Seen in the Tinderbox: http://dbtg.thresher.com/derby/test/tinderbox_trunk16/jvm1.6/testing/testlog/SunOS-5.10_i86pc-i386/542818-org.apache.derbyTesting.functionTests.suites.All_diff.txt
> The code in LobStreamsTest that failed, looks like this:
>         InputStream lStream = rs3.getClob(1).getAsciiStream();
>         assertTrue("FAIL - Clob and file contents do not match",
>                 compareLob2File(fStream, lStream));
> I think the problem is that the Clob object is garbage collected before the stream has been exhausted, and EmbedClob.finalize() closes the container. I think this affects earlier releases as well, but I'm only marking it as a 10.3 issue for now since I haven't verified it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.