[ONOS-6266] 'garbageCollect' is not working for groups after ONOS restart

Change-Id: I4285d610f245ee987fa876c7ba951fe926854b19
This commit is contained in:
sivachidambaram subramanian 2017-04-12 11:36:12 +05:30 committed by Thomas Vachuska
parent ee14a8b496
commit 247dfd82a5
2 changed files with 3 additions and 2 deletions

View File

@ -164,8 +164,9 @@ public class DistributedGroupStore
@Activate
public void activate() {
public void activate(ComponentContext context) {
cfgService.registerProperties(getClass());
modified(context);
KryoNamespace.Builder kryoBuilder = new KryoNamespace.Builder()
.register(KryoNamespaces.API)
.nextId(KryoNamespaces.BEGIN_USER_CUSTOM_ID)

View File

@ -133,7 +133,7 @@ public class DistributedGroupStoreTest {
groupStoreImpl.clusterCommunicator = new ClusterCommunicationServiceAdapter();
groupStoreImpl.mastershipService = new MasterOfAll();
groupStoreImpl.cfgService = new ComponentConfigAdapter();
groupStoreImpl.activate();
groupStoreImpl.activate(null);
groupStore = groupStoreImpl;
auditPendingReqQueue =
TestUtils.getField(groupStoreImpl, "auditPendingReqQueue");