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

multiple cache containers are possible but not recommended/supported

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 12.0.0.CR1, 11.0.8.Final
    • Configuration, Core
    • None
    • Hide

      Add configuration like followed and use CLI cache cache-container commands as well as Console

       

      <cache-container name="default" statistics="true">
      <transport cluster="${infinispan.cluster.name:cluster}" stack="${infinispan.cluster.stack:tcp}" node-name="${infinispan.node.name:}"/>
      <distributed-cache name="s1"/>
      </cache-container>
      <cache-container name="defaultX" statistics="true">
      <transport cluster="${infinispan.cluster.name:cluster}" stack="${infinispan.cluster.stack:tcp}" node-name="${infinispan.node.name:}"/>
      <distributed-cache name="x1"/>
      </cache-container>

      Show
      Add configuration like followed and use CLI cache cache-container commands as well as Console   <cache-container name="default" statistics="true"> <transport cluster="${infinispan.cluster.name:cluster}" stack="${infinispan.cluster.stack:tcp}" node-name="${infinispan.node.name:}"/> <distributed-cache name="s1"/> </cache-container> <cache-container name="defaultX" statistics="true"> <transport cluster="${infinispan.cluster.name:cluster}" stack="${infinispan.cluster.stack:tcp}" node-name="${infinispan.node.name:}"/> <distributed-cache name="x1"/> </cache-container>
    • Undefined

    Description

      It is possible by XSD to create multiple cache-container elements.
      As it is not meant to be used the configuration should not allow multiple cache-container elements!

       

      As effect the instance will start but the API or for server the CLI and Console can not handle it.

      The console will show one cache-container but caches from both.

      CLI will display only one cache-container and access to caches or use tab-compl. will fail with and IllegalState

       

      > cache s114:00:44,356 ERROR [AeshCommandRuntime] Runtime exception when completing: Buffer: cache s1, Cursor:8, Offset:0, IgnoreOffset:false, Append separator: true, Candidates:[] java.lang.IllegalStateException: Command invoked from the wrong context

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-wfink Wolf Fink
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: