Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-14263

Restrict most JGroupsTransport INFO logging when using a ForkChannel.

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 14.0.4.Final, 15.0.0.Final
    • 14.0.3.Final
    • Core
    • None

      When WildFly starts, Infinispan logs the following:

      2022-10-26 10:09:52,275 INFO [org.infinispan.CLUSTER] (ServerService Thread Pool – 22) ISPN000078: Starting JGroups channel `ejb`
      2022-10-26 10:09:52,276 INFO [org.infinispan.CLUSTER] (ServerService Thread Pool – 22) ISPN000094: Received new cluster view for channel ejb: [node-2|1] (2) [node-2, node-1]
      2022-10-26 10:09:52,276 INFO [org.infinispan.CONTAINER] (ServerService Thread Pool – 41) ISPN000556: Starting user marshaller 'org.wildfly.clustering.infinispan.marshall.InfinispanProtoStreamMarshaller'
      2022-10-26 10:09:52,277 INFO [org.infinispan.CLUSTER] (ServerService Thread Pool – 41) ISPN000078: Starting JGroups channel `ejb`
      2022-10-26 10:09:52,277 INFO [org.infinispan.CLUSTER] (ServerService Thread Pool – 41) ISPN000094: Received new cluster view for channel ejb: [node-2|1] (2) [node-2, node-1]
      2022-10-26 10:09:52,278 INFO [org.infinispan.CLUSTER] (ServerService Thread Pool – 22) ISPN000079: Channel `ejb` local address is `node-1`, physical addresses are `[127.0.0.1:7600]`
      2022-10-26 10:09:52,279 INFO [org.infinispan.CLUSTER] (ServerService Thread Pool – 41) ISPN000079: Channel `ejb` local address is `node-1`, physical addresses are `[127.0.0.1:7600]`
      2022-10-26 10:09:52,281 INFO [org.infinispan.CLUSTER] (ServerService Thread Pool – 10) ISPN000078: Starting JGroups channel `ejb`
      2022-10-26 10:09:52,281 INFO [org.infinispan.CLUSTER] (ServerService Thread Pool – 86) ISPN000078: Starting JGroups channel `ejb`
      2022-10-26 10:09:52,281 INFO [org.infinispan.CLUSTER] (ServerService Thread Pool – 86) ISPN000094: Received new cluster view for channel ejb: [node-2|1] (2) [node-2, node-1]
      2022-10-26 10:09:52,281 INFO [org.infinispan.CLUSTER] (ServerService Thread Pool – 10) ISPN000094: Received new cluster view for channel ejb: [node-2|1] (2) [node-2, node-1]
      2022-10-26 10:09:52,282 INFO [org.infinispan.CLUSTER] (ServerService Thread Pool – 10) ISPN000079: Channel `ejb` local address is `node-1`, physical addresses are `[127.0.0.1:7600]`
      2022-10-26 10:09:52,283 INFO [org.infinispan.CLUSTER] (ServerService Thread Pool – 86) ISPN000079: Channel `ejb` local address is `node-1`, physical addresses are `[127.0.0.1:7600]`

      The reason for this apparent duplication is that WildFly configures the JGroupTransport for each cache manager to use a ForkChannel that shares a single JChannel. This results in a lot of superfluous log messages - and is a source of confusion for many users - especially since the log messages for each ForkChannel are indistinguishable (a ForkChannel shares the same cluster name as the parent JChannel).

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: