commit | fd563f5df4ec58adc42bd52ffdd1067ef2e8466d | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Mon Jan 11 11:56:11 2016 -0800 |
committer | Ray Milkey <ray@onlab.us> | Mon Jan 11 15:09:30 2016 -0800 |
tree | 7c24f1d40e62c2b3a33de972d2dde5a7b282384b | |
parent | 8d28a55fe3da2891a9961fb10b9b4848d1c673cc [diff] |
Fix for ONOS-3649 - ONOS loses AAA app config across cluster restart The persistent map for the network config store uses the app ID as a key. App IDs were not presisted, and could be generated differently when a cluster comes back up. This change makes the IDs persistent. Change-Id: I665ebc764cdf57c10fecda4f0b2206f2a2aa191c
diff --git a/core/store/dist/src/main/java/org/onosproject/store/core/impl/ConsistentApplicationIdStore.java b/core/store/dist/src/main/java/org/onosproject/store/core/impl/ConsistentApplicationIdStore.java index 7c3769a..e44a21a 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/core/impl/ConsistentApplicationIdStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/core/impl/ConsistentApplicationIdStore.java
@@ -69,12 +69,10 @@ public void activate() { appIdCounter = storageService.atomicCounterBuilder() .withName("onos-app-id-counter") - .withPartitionsDisabled() .build(); registeredIds = storageService.<String, ApplicationId>consistentMapBuilder() .withName("onos-app-ids") - .withPartitionsDisabled() .withSerializer(SERIALIZER) .build();