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 "Suresh Thalamati (JIRA)" <de...@db.apache.org> on 2006/02/06 20:30:21 UTC

[jira] Updated: (DERBY-750) OnlineBackupTest1.java intermittently hangs

     [ http://issues.apache.org/jira/browse/DERBY-750?page=all ]

Suresh Thalamati updated DERBY-750:
-----------------------------------

    Attachment: derby-750.diff

Problem was backup was trying to a read a pages from a container before the first
allocation page for it is created with a invalid page number. First allocation page
number is invalid only when first page is not created.

The reason backup sees containers in that state, backup finds the containers to 
backup by scanning through the seg0 list files and gets access to the container
conglomerate cache, cache returns the handles after the container file is
created. 

Fix is NOT  to backup containers whose first allocation page not yet created.  It is
safe to not backup containers in such case instead of waiting for container
creation to complete, redo of the log on restore will create them. 

Renabled the test case that hit this problem in OnlineBackupTest1.java ,  which was commented 
earlier.  
   
TESTS : derbyall test suite passed on Windows XP/JDK142
It would be great if some can review and commit this patch. 

svn stat:

M      java\engine\org\apache\derby\impl\store\raw\data\FileContainer.java
M      java\engine\org\apache\derby\impl\store\raw\data\RAFContainer.java
M      java\testing\org\apache\derbyTesting\functionTests\tests\store\OnlineBackupTest1.java


> OnlineBackupTest1.java intermittently hangs
> -------------------------------------------
>
>          Key: DERBY-750
>          URL: http://issues.apache.org/jira/browse/DERBY-750
>      Project: Derby
>         Type: Bug
>   Components: Store
>     Versions: 10.2.0.0
>  Environment: SunOS-5.9 sun4u-sparc, Sun JVM 1.5.0_03
> SunOS-5.10 i86pc-i386, Sun JVM 1.5.0_04
> Windows XP / CYGWIN_NT-5.1 i686-unknow, Sun JVM1.5.0_05
> Linux-2.4.21-27.ELsmp i686-athlon, Sun JVM 1.5.0_03
>     Reporter: Ole Solberg
>     Assignee: Suresh Thalamati
>     Priority: Minor
>  Attachments: derby-750.diff, obtest1.diff, siv02_app.properties_OnlineBackupTest1.tmp
>
> OnlineBackupTest1.java intermittently hangs(endless loop - 100% cpu). I have seen this on "all" of the platforms we test on.
> Seen in "derbyall" itself and runs of derbyall sub-testsuites storemoe and storeall.
> Some cases:
> storemore in
> http://www.multinet.no/~solberg/public/Apache/Derby/Limited/testSummary-354827.html
> http://www.multinet.no/~solberg/public/Apache/Derby/Limited/testSummary-355169.html
>   (Details, including sysinfo,  in http://www.multinet.no/~solberg/public/Apache/Derby/testlog/SunOS-5.10_i86pc-i386/355169.zip )
> storeall in
> http://www.multinet.no/~solberg/public/Apache/Derby/Limited/testSummary-355569.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira