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
Showing
1 changed file
with
0 additions
and
2 deletions
... | @@ -69,12 +69,10 @@ public class ConsistentApplicationIdStore implements ApplicationIdStore { | ... | @@ -69,12 +69,10 @@ public class ConsistentApplicationIdStore implements ApplicationIdStore { |
69 | public void activate() { | 69 | public void activate() { |
70 | appIdCounter = storageService.atomicCounterBuilder() | 70 | appIdCounter = storageService.atomicCounterBuilder() |
71 | .withName("onos-app-id-counter") | 71 | .withName("onos-app-id-counter") |
72 | - .withPartitionsDisabled() | ||
73 | .build(); | 72 | .build(); |
74 | 73 | ||
75 | registeredIds = storageService.<String, ApplicationId>consistentMapBuilder() | 74 | registeredIds = storageService.<String, ApplicationId>consistentMapBuilder() |
76 | .withName("onos-app-ids") | 75 | .withName("onos-app-ids") |
77 | - .withPartitionsDisabled() | ||
78 | .withSerializer(SERIALIZER) | 76 | .withSerializer(SERIALIZER) |
79 | .build(); | 77 | .build(); |
80 | 78 | ... | ... |
-
Please register or login to post a comment