Uploaded image for project: 'JBoss Cache'
  1. JBoss Cache
  2. JBCACHE-1600

CacheJmxWrapper ignores ClusterConfig attribute

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.2.5.GA
    • Fix Version/s: 3.2.8.GA
    • Component/s: JMX
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Deploy attached test-service.xml file.
      Note that the "GMS:" line in the log reports a random UDP port, not the configured TCP one, indicating that it's using a default configuration:

      GMS: address is 127.0.0.1:12345 (cluster=Test)

      Show
      Deploy attached test-service.xml file. Note that the "GMS:" line in the log reports a random UDP port, not the configured TCP one, indicating that it's using a default configuration: GMS: address is 127.0.0.1:12345 (cluster=Test)
    • Affects:
      Release Notes
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      A. Use an alternate method of creating the cache.

      B. Instead of embedding the JGroups configuration with ClusterConfig, use a MultiplexerStack:

      <attribute name="MuxChannelFactory"><inject bean="JChannelFactory"/></attribute>
      <attribute name="MultiplexerStack">tcp</attribute>

      Show
      A. Use an alternate method of creating the cache. B. Instead of embedding the JGroups configuration with ClusterConfig, use a MultiplexerStack: <attribute name="MuxChannelFactory"><inject bean="JChannelFactory"/></attribute> <attribute name="MultiplexerStack">tcp</attribute>

      Description

      When creating a cache using the CacheJmxWrapper:

      <mbean code="org.jboss.cache.jmx.CacheJmxWrapper" name="test:service=TreeCache">
      <attribute name="CacheMode">REPL_SYNC</attribute>
      <attribute name="ClusterName">Test</attribute>
      <attribute name="ClusterConfig">
      <config>
      <TCP start_port="12345"

      the ClusterConfig section is ignored, and a default JGroups configuration is used.

      The root cause is CacheJmxWrapper#setClusterConfig parses the contents of <ClusterConfig>,
      but doesn't save it, and always sets the result to null.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dereed Dennis Reed
                  Reporter:
                  dereed Dennis Reed
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: