directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Karasulu (JIRA)" <directory-...@incubator.apache.org>
Subject [jira] Created: (DIREVE-92) Add JVM shutdown hook to prevent loss of caches before next flush
Date Thu, 02 Dec 2004 17:48:24 GMT
Add JVM shutdown hook to prevent loss of caches before next flush
-----------------------------------------------------------------

         Key: DIREVE-92
         URL: http://nagoya.apache.org/jira/browse/DIREVE-92
     Project: Directory Eve
        Type: Bug
  Components: eve  
    Reporter: Alex Karasulu
 Assigned to: Alex Karasulu 


Looks like you can loose data if you shutdown the server after writing to it if you shutdown
before a sync operation.  This is similar to the buffer cache idea.  At this point all writes
are not persisted until a sync or buffers fill.  We will have the option later to use ACID
transactions for perisiting on each write.  This is slower but safer.

For now we just need a JVM hook to sync on shutdown.  This way all caches get flushed to disk
before terminating when signals are trapped.  Gotta figure out how to do this.  Phoenix did
this nicely.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.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