-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gh-3094: Allow services to use different cache implementations #3147
Gh-3094: Allow services to use different cache implementations #3147
Conversation
… and Properties classes to use these Excludes Federated Store changes
Includes removing redundant inheritance from FederatedStoreCache.
Mostly changes to use FederatedStoreProperties instead of general properties and remove usage of empty properties
Also allow new property in deprecated method
Further work is required to add testing for the new multi-cache implementation and to remove as much use of deprecated code as possible, while also adding tests to ensure external code using deprecated methods can still work to some degree. |
Also fix missing generics in Cache.java
Change log4j test settings for cache module to show DEBUG messages
…ache-implementations
The previous approach replaced the class but this wasn't required as re-initialising was already ignored. Now it warns with more details.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3147 +/- ##
=============================================
+ Coverage 66.34% 66.70% +0.36%
- Complexity 2544 2556 +12
=============================================
Files 907 907
Lines 28975 29063 +88
Branches 3216 3239 +23
=============================================
+ Hits 19223 19387 +164
+ Misses 8319 8241 -78
- Partials 1433 1435 +2 ☔ View full report in Codecov by Sentry. |
…Store Improve handling to set the missing cache property instead of behaving as if it was
core/cache/src/test/java/uk/gov/gchq/gaffer/cache/CacheTest.java
Outdated
Show resolved
Hide resolved
…ache-implementations
…ache-implementations Also remove some old JUnit assertions from FederatedGraphStorageTest.java
...n/federated-store/src/main/java/uk/gov/gchq/gaffer/federatedstore/FederatedGraphStorage.java
Outdated
Show resolved
Hide resolved
...n/federated-store/src/main/java/uk/gov/gchq/gaffer/federatedstore/FederatedGraphStorage.java
Show resolved
Hide resolved
...ated-store/src/test/java/uk/gov/gchq/gaffer/federatedstore/FederatedStorePropertiesTest.java
Outdated
Show resolved
Hide resolved
These can be used to access these caches without repeatly recreating the Cache objects elsewhere or trying to get the Service directly
…ting them and add a new test for multiple cache instances
Related issue