felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r1679813 - /felix/sandbox/pderop/bndtools-FELIX-4866/org.apache.felix.framework.concurrencytest/src/org/apache/felix/framework/concurrencytest/Loader.java
Date Sat, 16 May 2015 22:29:19 GMT
Author: pderop
Date: Sat May 16 22:29:19 2015
New Revision: 1679813

URL: http://svn.apache.org/r1679813
Log:
Don't close service trackers in case of errors, in order to be able to inspect service registry
from gogo shell.

Modified:
    felix/sandbox/pderop/bndtools-FELIX-4866/org.apache.felix.framework.concurrencytest/src/org/apache/felix/framework/concurrencytest/Loader.java

Modified: felix/sandbox/pderop/bndtools-FELIX-4866/org.apache.felix.framework.concurrencytest/src/org/apache/felix/framework/concurrencytest/Loader.java
URL: http://svn.apache.org/viewvc/felix/sandbox/pderop/bndtools-FELIX-4866/org.apache.felix.framework.concurrencytest/src/org/apache/felix/framework/concurrencytest/Loader.java?rev=1679813&r1=1679812&r2=1679813&view=diff
==============================================================================
--- felix/sandbox/pderop/bndtools-FELIX-4866/org.apache.felix.framework.concurrencytest/src/org/apache/felix/framework/concurrencytest/Loader.java
(original)
+++ felix/sandbox/pderop/bndtools-FELIX-4866/org.apache.felix.framework.concurrencytest/src/org/apache/felix/framework/concurrencytest/Loader.java
Sat May 16 22:29:19 2015
@@ -66,13 +66,13 @@ public class Loader implements Runnable
 		// Count the number of satisfied components.
 		long satisfied = components.stream().filter(Component::isSatisfied).count();			
 		
-		// Stop all components
-        components.stream().forEach(Component::stop);
-        
         // Report an error if we don't have expected satisfied components.
 		if (satisfied != COMPONENTS) {
 			throw new Exception("found unsatisfied component: " + (COMPONENTS - satisfied));			
 		}
+
+		// Stop all components
+        components.stream().forEach(Component::stop);        
 	}
 
 	private Component createComponents(int i) {



Mime
View raw message