felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r926467 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleCache.java
Date Tue, 23 Mar 2010 05:56:00 GMT
Author: rickhall
Date: Tue Mar 23 05:56:00 2010
New Revision: 926467

URL: http://svn.apache.org/viewvc?rev=926467&view=rev
Log:
If we are unable to reload a cached bundle, then we should delete the
entire cached bundle directory, not just the revision. (FELIX-2222)

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleCache.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleCache.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleCache.java?rev=926467&r1=926466&r2=926467&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleCache.java
(original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleCache.java
Tue Mar 23 05:56:00 2010
@@ -142,9 +142,10 @@ public class BundleCache
                 }
                 catch (Exception ex)
                 {
-                    // Log and ignore.
+                    // Log exception and remove bundle archive directory.
                     m_logger.log(Logger.LOG_ERROR,
-                        "Error creating archive.", ex);
+                        "Error reloading cached bundle, removing it: " + children[i], ex);
+                    deleteDirectoryTree(children[i]);
                 }
             }
         }



Mime
View raw message