-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
CacheMonitor - make cache injection optional #1973
CacheMonitor - make cache injection optional #1973
Conversation
👍 |
@@ -38,20 +39,30 @@ public CacheMonitor( | |||
this.cache = cache; | |||
} |
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.
is this constructor still needed?
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.
if someone uses it directly, yes
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.
not a big deal but,
i meant, is anything actually using this constructor anymore. If not, then we can remove it.
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.
not within Druid at least. Fine to remove, unless we want to preserve binary compatibility for extensions that might bind it
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.
if they are binding via guice then this shouldn't break anything.
I would remove it.
It is up to you though, I'm fine either ways :)
LGTM, 👍 |
allows enabling the CacheMonitor for all index tasks, even if some don't bind any cache instance.
9012134
to
71376ef
Compare
👍 |
CacheMonitor - make cache injection optional
backport #1973 - make cache injection optional
allows enabling the CacheMonitor for all index tasks, even if some don't bind any cache instance (useful in combination with #1943 for realtime tasks)