Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14687

Revert parameterization of AuthCacheMBean interface

    XMLWordPrintableJSON

Details

    • 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.

      Attachments

        Activity

          People

            samt Sam Tunnicliffe
            samt Sam Tunnicliffe
            Sam Tunnicliffe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: