Config-manager: add synchronized to BlankTransactionServiceTracker. 79/2779/1
authorTomas Olvecky <tolvecky@cisco.com>
Fri, 15 Nov 2013 14:37:06 +0000 (15:37 +0100)
committerTomas Olvecky <tolvecky@cisco.com>
Fri, 15 Nov 2013 14:37:06 +0000 (15:37 +0100)
Add synchronization mechanism to prevent ConflictingVersionException when loading bundles in parallel.

Change-Id: I993b090cf8a106046d95b64fca89472121918407
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/osgi/BlankTransactionServiceTracker.java

index 106a7fb..de1a425 100644 (file)
@@ -37,7 +37,7 @@ public class BlankTransactionServiceTracker implements ServiceTrackerCustomizer<
         return null;
     }
 
-    private void blankTransaction() {
+    private synchronized void blankTransaction() {
         // create transaction
         ObjectName tx = configRegistry.beginConfig();
         CommitStatus commitStatus = configRegistry.commitConfig(tx);