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

multiple cache containers are possible but not recommended/supported

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 12.0.0.CR1, 11.0.8.Final
    • Fix Version/s: None
    • Component/s: Configuration, Core
    • Labels:
      None
    • Steps to Reproduce:
      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>
    • [QE] How to address?:
      ---
    • [QE] Why QE missed?:
      ---

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            wdfink Wolf-Dieter Fink
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: