Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6375

RevisionGCMbeans are not filtered correctly in the RepositoryManagement

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.2
    • Fix Version/s: 1.7.3, 1.8.0
    • Component/s: core
    • Labels:
      None

      Description

      The RepositoryManagement uses the new Whiteboard#track(Class,Map) method to get services with given role. When the OSGi implementation of the whiteboard is being used, the filter is transformed into OSGi filter expression. Particularly, the role property is being used to get the RevisionGCMBean of the right type.

      However, the RevisionGCMBean role is being set as a part of the jmx.objectname property, not a separate property. The jmx.objectname property has following form:

      org.apache.jackrabbit.oak:name=Revision garbage collection - secondary,type=RevisionGarbageCollection,role=secondary
      

      Because of that, an attempt to call the RepositoryManagement#startRevisionGC() method (or its parametrized version) fails.

      //cc: Chetan Mehrotra, Michael Dürig

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tomek.rekawek Tomek Rękawek
                Reporter:
                tomek.rekawek Tomek Rękawek
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: