db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Thalamati (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1042) store/OnlineBackupTest3.java intermittently hangs
Date Thu, 09 Mar 2006 18:40:42 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1042?page=all ]

Suresh Thalamati updated DERBY-1042:
------------------------------------

    Attachment: derby-1042.diff

I could not reproduce this problem on my machine. By looking at the code I
found backup is getting unblocked before the post commit work is done. 
This may cause the error that is reported, if the jar files to copied to the
backup is deleted by the post commit.  Attached patch unblocks the backup
only after the post commit work that is schedules to run in the same
transaction is done. While scanning the code for this problem, I also noticed 
couple of other small issues, this patch addresses them also. 


DERBY-1042:

-- unblock the backup only after the post commit work to be done on the same
   transaction is complete. 
-- when backup is in progress drop stub files are not deleted during
   checkpoint. These are necessary to perform recovery starting from the 
   backup checkpoint. 
-- synchronized getContaineNames() that gets the containers to be written to
   the backup. This method need to be synchronized so that other privileged
   actions does not run in parallel and vice versa. 
 
-- Modified the OnlineBackupTest1.java and OnlineBackupTest3.java  tests to
   abort if there is a error during the backup instead of waiting incorrectly
   for the failed backup to complete forever. 


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\xact\Xact.java
M      java\engine\org\apache\derby\impl\store\raw\log\LogToFile.java
M      java\engine\org\apache\derby\impl\store\raw\data\BaseDataFileFactory.java

M      java\testing\org\apache\derbyTesting\functionTests\tests\store\OnlineBackup.java
M      java\testing\org\apache\derbyTesting\functionTests\tests\store\OnlineBackupTest1.java
M      java\testing\org\apache\derbyTesting\functionTests\tests\store\OnlineBackupTest3.java


> store/OnlineBackupTest3.java intermittently hangs
> -------------------------------------------------
>
>          Key: DERBY-1042
>          URL: http://issues.apache.org/jira/browse/DERBY-1042
>      Project: Derby
>         Type: Bug
>   Components: Store
>     Versions: 10.2.0.0
>  Environment: OS: Linux RedHat 4(Stentz 2.6.14-1.1644_FC4 i686) - Linux 2.6.14-1.1644_FC4
#1 Sun Nov 27 03:25:11 EST 2005, JVM: Sun Microsystems Inc. 1.4.2_10
> OS: Linux 2.6.13-1.1532_FC4 #1 Thu Oct 20 01:30:08 EDT 2005 i686 i686 i386 GNU/Linux,
JVM: Java HotSpot(TM) Client VM (1.4.2_02-b03 mixed mode)
>     Reporter: Ole Solberg
>     Assignee: Suresh Thalamati
>      Fix For: 10.2.0.0
>  Attachments: OnlineBackupTest3.tar.gz, derby-1042.diff
>
> store/OnlineBackupTest3.java hangs.
> More info:
> http://article.gmane.org/gmane.comp.apache.db.derby.devel/15336
> http://www.multinet.no/~solberg/public/Apache/DerbyJvm1.4/Limited/testSummary-379835.html
[Linux-2.6.14-1.1644 FC4]
> > ERROR XSRS5: Error copying file (during backup) from /export/home/tmp/os136789/testingDerbyJvm1.4/Linux-2.6.14-1.1644_FC4_i686-i686/derbyall/derbyall/storeall/storemore/OnlineBackupTest3/wombat/jar/APP
to extinout/onlinebackuptest/wombat/jar/APP.

-- 
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


Mime
View raw message