You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fixstrimzi#11: Factor out StorageChecker
The intent of this refactoring is merely to decouple StorageChecker from StaticQuotaCallback, to facilitate better unit-cases
Signed-off-by: kwall <kwall@apache.org>
* Document the existing behaviour that the plugin accepts a check-interval is a value in seconds.
Signed-off-by: kwall <kwall@apache.org>
(cherry picked from commit 3c968a1)
StaticQuotaCallback.StorageChecker
is currently an inner class. It shares a bunch of state withStaticQuotaCallback
viavolatile
fields.It would be better for
StorageChecker
to be a top level class.Perhaps we could use some record class for its config, using an
AtomicReference
to share that config with theStaticQuotaCallback
.Or perhaps we just use an AtomicReference for the storageChecker itself, and on reconfiguration stop the existing thread and instantiate a new one.
The text was updated successfully, but these errors were encountered: