-
Notifications
You must be signed in to change notification settings - Fork 16
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
[RC] Use Guava instead of Caffeine caches for Android #2483
base: develop
Are you sure you want to change the base?
Conversation
private static final LoadingCache<String, MaybeUri> uriCache = CacheStats.of( | ||
SharedTaggedMetricRegistries.getSingleton(), "dialogue-uri") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've dropped this instrumentation since we don't have a 1-1 replacement using the same timeseries names for guava caches. If this unblocks android stuff and we move forward, we can look into adding some guava cache utility functionality.
f093736
to
4cbd124
Compare
reduce coupling to caffeine in favor of guava We generally prefer caffeine caches, however they have compatibility issues with graalvm-native as well as android codebases. replace missed caches, drop some instrumentation
4cbd124
to
e103e7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving to create an RC release for testing on Android
[skip ci]
Invalidated by push of 5ce0515
Before this PR
Caffeine caches run into issues when running on Android, minimally related to its usage of
java.lang.System$Logger
which isn't present.After this PR
Swap over to using Guava caches which should be fully compatible on Android devices.
==COMMIT_MSG==
==COMMIT_MSG==
Possible downsides?
Ideally this change would be done in a way where we pick Caffeine caches when running on standard JVMs and Guava caches when running on Android devices.