db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2141) BlobClob4BlobTest.testPositionBlob() fails with NullPointerException
Date Sun, 06 May 2007 15:44:15 GMT

    [ https://issues.apache.org/jira/browse/DERBY-2141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493935
] 

Knut Anders Hatlen commented on DERBY-2141:
-------------------------------------------

I don't think synchronizing on the OverflowInputStream solves this problem since only one
of the threads access the BaseContainerHandle through the stream. To me it seems like this
is what happens (T1 == main thread, T2 == finalization):

  T1_1: An unmaterialized lob object is obtained by the test method.
  T1_2: The test method returns, and the lob is no longer referenced and is free to be garbage
collected.
  T1_3: tearDown() calls rollback() which drops the table containing the lob and and the base
container handle is notified and closed.
  T2_1: [BC]lob.finalize() calls OverflowInputStream.closeStream() which calls BaseContainerHandle.close().

> BlobClob4BlobTest.testPositionBlob() fails with NullPointerException
> --------------------------------------------------------------------
>
>                 Key: DERBY-2141
>                 URL: https://issues.apache.org/jira/browse/DERBY-2141
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure
>    Affects Versions: 10.3.0.0
>         Environment: Java SE 6, Java SE 5.0 (less frequently). Linux and Solaris.
>            Reporter: Knut Anders Hatlen
>         Attachments: stacktrace.diff
>
>
> Seen in the nightly regression tests:
> http://dbtg.thresher.com/derby/test/Daily/jvm1.6/testing/testlog/lin/481811-org.apache.derbyTesting.functionTests.suites.All_diff.txt
> http://dbtg.thresher.com/derby/test/Daily/jvm1.6/testing/testlog/lin/480626-org.apache.derbyTesting.functionTests.suites.All_diff.txt

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


Mime
View raw message