Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Normal
Description
In CASSANDRA-14662, a type parameter <T> and invalidate<T t> method were added to AuthCacheMBean with the intention that this would automatically expose via JMX the invalidate method from AuthCache itself. Actually, this is not the case, as type erasure obscures the actual type of the parameter and so JMX clients like jconsole and jmc disable access to the method.
Only PasswordAuthenticator.CredentialsCache provided method like this previously, via CredentialsCacheMBean extends AuthCacheMBean, so the most straightforward fix is to just revert the change to AuthCacheMBean. Future/alternative cache implementations can continue to specify their own MBean interfaces to add specialised methods as before.
I should've caught this before committing the CASSANDRA-14662 as it broke a couple of dtests in AuthTest, mea culpa.