Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-2638

CLI Scripts are incorrectly referencing the cache within the cache container, should reference cache container

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.4.1, 8.5
    • 8.4, 8.4.1
    • Build/Kits
    • None

      The domain and standalone cli scripts need to have the following lines corrected:

      /profile=ha/subsystem=teiid:add(async-thread-pool=teiid-async, distributed-cache-jgroups-stack=udp, resultset-cache-infinispan-container=resultset-repl, preparedplan-cache-infinispan-container=preparedplan, policy-decider-module=org.jboss.teiid)

      /subsystem=teiid:add(async-thread-pool=teiid-async, resultset-cache-infinispan-container=resultset, preparedplan-cache-infinispan-container=preparedplan, policy-decider-module=org.jboss.teiid)

      so that the cache containers map to teiid-cache, and not the cache within the container. This isn't seen in the standalone-teiid.xml, cause those settings to do point to the "teiid" cache container.

            [TEIID-2638] CLI Scripts are incorrectly referencing the cache within the cache container, should reference cache container

            Never mind what I said, sorry about confusion. Looks like, based on the "base" result name I was deriving the replication name as we need both. Original commit is fine. Corrected now.

            Ramesh Reddy added a comment - Never mind what I said, sorry about confusion. Looks like, based on the "base" result name I was deriving the replication name as we need both. Original commit is fine. Corrected now.

            Van Halbert (Inactive) added a comment - - edited

            Also, there was a new name=value (resultset-cache-name=teiid-cache) added to the following:

            /profile=ha/subsystem=teiid:add(async-thread-pool=teiid-async, distributed-cache-jgroups-stack=udp, resultset-cache-infinispan-container=teiid-cache, resultset-cache-name=teiid-cache, preparedplan-cache-infinispan-container=teiid-cache, policy-decider-module=org.jboss.teiid)

            And I don't see this in standalone script, are they suppose to be different?

            Van Halbert (Inactive) added a comment - - edited Also, there was a new name=value (resultset-cache-name=teiid-cache) added to the following: /profile=ha/subsystem=teiid:add(async-thread-pool=teiid-async, distributed-cache-jgroups-stack=udp, resultset-cache-infinispan-container=teiid-cache, resultset-cache-name=teiid-cache, preparedplan-cache-infinispan-container=teiid-cache, policy-decider-module=org.jboss.teiid) And I don't see this in standalone script, are they suppose to be different?

            Tried with latest domain cli script committed to 8.4.x, and it still fails with:

            [Server:server-one] JBAS014775: New missing/unsatisfied dependencies:
            [Server:server-one] service jboss.infinispan.teiid-cache.resultset-repl-repl (missing) dependents: [service jboss.teiid.cache.resultset]
            [Server:server-one]

            Van Halbert (Inactive) added a comment - Tried with latest domain cli script committed to 8.4.x, and it still fails with: [Server:server-one] JBAS014775: New missing/unsatisfied dependencies: [Server:server-one] service jboss.infinispan.teiid-cache.resultset-repl-repl (missing) dependents: [service jboss.teiid.cache.resultset] [Server:server-one]

            server has an issue when the caches are assigned the cache names,not the container names. The following error is seen with current CLI scripts:

            [Server:server-two] JBAS014775: New missing/unsatisfied dependencies:
            [Server:server-two] service jboss.infinispan.preparedplan (missing) dependents: [service jboss.teiid.infinispan-pp-cache-factory]
            [Server:server-two] service jboss.infinispan.preparedplan.preparedplan (missing) dependents: [service jboss.teiid.cache.prepared-plan]
            [Server:server-two] service jboss.infinispan.resultset-repl (missing) dependents: [service jboss.teiid.infinispan-rs-cache-factory]
            [Server:server-two] service jboss.infinispan.resultset-repl.resultset (missing) dependents: [service jboss.teiid.cache.resultset]
            [Server:server-two] service jboss.infinispan.resultset-repl.resultset-repl (missing) dependents: [service jboss.teiid.cache.resultset]
            [Server:server-two]
            [Server:server-two] 11:06:28,817 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.1.0.GA (AS 7.2.0.Final-redhat-8) started (with errors) in 7222ms - Started 196 of 338 services (13 services failed or missing dependencies, 128 services are passive or on-demand)

            which do not appear when those changes are mode.

            Van Halbert (Inactive) added a comment - server has an issue when the caches are assigned the cache names,not the container names. The following error is seen with current CLI scripts: [Server:server-two] JBAS014775: New missing/unsatisfied dependencies: [Server:server-two] service jboss.infinispan.preparedplan (missing) dependents: [service jboss.teiid.infinispan-pp-cache-factory] [Server:server-two] service jboss.infinispan.preparedplan.preparedplan (missing) dependents: [service jboss.teiid.cache.prepared-plan] [Server:server-two] service jboss.infinispan.resultset-repl (missing) dependents: [service jboss.teiid.infinispan-rs-cache-factory] [Server:server-two] service jboss.infinispan.resultset-repl.resultset (missing) dependents: [service jboss.teiid.cache.resultset] [Server:server-two] service jboss.infinispan.resultset-repl.resultset-repl (missing) dependents: [service jboss.teiid.cache.resultset] [Server:server-two] [Server:server-two] 11:06:28,817 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.1.0.GA (AS 7.2.0.Final-redhat-8) started (with errors) in 7222ms - Started 196 of 338 services (13 services failed or missing dependencies, 128 services are passive or on-demand) which do not appear when those changes are mode.

            for HA add,

            resultset-cache-name=resultset-repl

            then we should be good

            Ramesh Reddy added a comment - for HA add, resultset-cache-name=resultset-repl then we should be good

            hmm.. good point may be not. Just the replication resultset cache name is not default in that case

            Ramesh Reddy added a comment - hmm.. good point may be not. Just the replication resultset cache name is not default in that case

            Ramesh since we use those cache names by default in TeiidAdd, is there a reason that they need to be in the cli script as well?

            Steven Hawkins added a comment - Ramesh since we use those cache names by default in TeiidAdd, is there a reason that they need to be in the cli script as well?

            Those are still in-correct. It should be

            resultset-cache-infinispan-container=teiid-cache, resultset-cache-name=resultset, preparedplan-cache-infinispan-container=teiid-cache, preparedplan-cache-name= preparedplan

            and for HA
            resultset-cache-infinispan-container=teiid-cache, resultset-cache-name=resultset-repl, preparedplan-cache-infinispan-container=teiid-cache, preparedplan-cache-name= preparedplan

            Pull submitted is wrong

            Ramesh Reddy added a comment - Those are still in-correct. It should be resultset-cache-infinispan-container=teiid-cache, resultset-cache-name=resultset, preparedplan-cache-infinispan-container=teiid-cache, preparedplan-cache-name= preparedplan and for HA resultset-cache-infinispan-container=teiid-cache, resultset-cache-name=resultset-repl, preparedplan-cache-infinispan-container=teiid-cache, preparedplan-cache-name= preparedplan Pull submitted is wrong

              rhn-engineering-rareddy Ramesh Reddy
              van.halbert Van Halbert (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: