activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r392441 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/StoreImpl.java
Date Fri, 07 Apr 2006 22:31:55 GMT
Author: rajdavies
Date: Fri Apr  7 15:31:53 2006
New Revision: 392441

URL: http://svn.apache.org/viewcvs?rev=392441&view=rev
Log:
handle concurrent close errors

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/StoreImpl.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/StoreImpl.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/StoreImpl.java?rev=392441&r1=392440&r2=392441&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/StoreImpl.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/StoreImpl.java
Fri Apr  7 15:31:53 2006
@@ -65,9 +65,10 @@
      * 
      * @see org.apache.activemq.kaha.Store#close()
      */
-    public void close() throws IOException{
+    public void close() {
         synchronized(mutex){
             if(!closed){
+                try {
                 for(Iterator i=mapContainers.values().iterator();i.hasNext();){
                     MapContainerImpl container=(MapContainerImpl) i.next();
                     container.close();
@@ -79,6 +80,9 @@
                 force();
                 dataFile.close();
                 closed=true;
+                }catch(IOException e){
+                    log.debug("Failed to close the store cleanly",e);
+                }
             }
         }
     }



Mime
View raw message