fix subscription module restart bug (#4734)

* fix subscription module restart bug

* changelog

---------

Co-authored-by: Ken Stevens <ken@smilecdr.com>
This commit is contained in:
Ken Stevens 2023-04-13 13:06:04 -04:00 committed by GitHub
parent b88ccbc7b0
commit cc9d1b992d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
type: fix
issue: 4734
title: "Fixed a regression introduced by 4624 that prevented subscriptions from loading into the in-memory
subscription cache on system startup."

View File

@ -64,9 +64,9 @@ public abstract class BaseResourceCacheSynchronizer implements IResourceChangeLi
mySearchParameterMap = getSearchParameterMap();
mySystemRequestDetails = SystemRequestDetails.forAllPartitions();
myEnabled = true;
IResourceChangeListenerCache resourceCache = myResourceChangeListenerRegistry.registerResourceResourceChangeListener(myResourceName, mySearchParameterMap, this, REFRESH_INTERVAL);
resourceCache.forceRefresh();
myEnabled = true;
}
@PreDestroy