db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From derby-...@db.apache.org
Subject [jira] Closed: (DERBY-32) Logic to prevent mutiple jvms booting the same database in parallel to avoid accidental corruptions on Unix environment is not working.
Date Thu, 14 Oct 2004 23:51:52 GMT
Message:

   The following issue has been closed.

   Resolver: Samuel Andrew McIntyre
       Date: Thu, 14 Oct 2004 4:49 PM

svn commit 54681
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/DERBY-32

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: DERBY-32
    Summary: Logic to prevent mutiple jvms  booting the same  database  in parallel  to avoid
accidental corruptions on  Unix environment is not working.
       Type: Bug

     Status: Closed
   Priority: Minor
 Resolution: FIXED

    Project: Derby
 Components: 
             Store
   Fix Fors:
             10.0.2.0
   Versions:
             10.0.2.0

   Assignee: Suresh Thalamati
   Reporter: Suresh Thalamati

    Created: Tue, 5 Oct 2004 4:50 PM
    Updated: Thu, 14 Oct 2004 4:49 PM
Environment: Unix Environment(Solaris. Linux ..etc) 

Description:
Current architecure requires that only one JVM boots a database at a time. If more than one
JVM boots the same database, unrecoverable courruptions can occur. To avoid users accidentaly
getting into this 
scenario,  Derby catches this case and throws error: For example
On windows if two jvm's boot the same database it throws the following error: ERROR XSDB6:
Another instance of Derby may have already booted the database C:\s
uresht\databases\wombat.
--

On Solaris , this logic seems to have broken; It allows multiple 
jvm's to boot the same database. 

On Linux it holds on to the lock even if database is shutdown. 
  
Repro:
Connect to the same database in parallel using two jvms through ij. 

 



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message