Red Hat Bugzilla – Bug 825818
[jdg] Duplicate infinspan resource
Last modified: 2015-11-01 19:42:50 EST
Created attachment 587246 [details]
Description of problem: Infinispan child resource of type Infinispan is detected twice.
Version-Release number of selected component (if applicable):
JON 3.1.ER6 JDG6.ER.10
Steps to Reproduce:
2.run 'Install RHQ User'
3.wait for child resources
Actual results:infinispan resource is shown twice, changing configuration of 1st one affect 2nd one, there is a bunch of NPEs in JDG log related to infinispan subsystem, but I am not sure whether they are related or not.
Expected results: infinispan resource should be present only once
Note that I've installed jon-plugin-pack-eap-3.1.0.ER6.zip and jon-plugin-pack-jdg-3.1.0.ER6.zip
it looks like jdg plugin overlaps with as7-plugin.
marking this URGENT/URGENT and JON 3.1 target
As agreed with Heiko, the as7 plugin is going to hide the infinispan subsystem when it detects JDG. The JDG plugin will be aligned to the latest <resource-configuration> section from the as7 plugin. Also the JDG plugin should be the sole owner of the datagrid connector resources.
Have clarified this issue with Heiko. This is not a *server* discovery issue (so not importing resources is not applicable here) rather its a service discovery issue, both the as7 and jdg plugin are discovering infinispan related services underneath a JDG server instance. Summary of the solution:
a) the as7 plugin when discovering infinispan services will check whether the jdg plugin is deployed. If it is not deployed then the discovery will work as it does today, if it is deployed then the as7 plugin will not discover infinispan related services it will defer to the jdg plugin.
b) the as7 plugin will be updated to remove references to the datagrid connector services since they are JDG specific, not part of EAP, and will be handled by the jdg plugin.
c) the jdg plugin will be updated to include all of the configuration elements for infinispan services currently in the as7 plugin.
This will require an ER11 build of the JDG plugin
Note: The conditional discovery detection mentioned in a) will only work if both the jdg and as7 plugins are deployed together. If the jdg plugin is deployed to the JON system after the JDG server resource has been discovered by the as7 plugin, then the special detection will not occur. In order to achieve that the JDG server resource would need to be uninventoried and rediscovered.
Release blocking per team decision.
release branch 0b46807
Created attachment 595683 [details]
jdg server log
I'm sorry, bug is still visible.
jon server: http://porkchop.devel.redhat.com/released/JBossON/3.1.0/GA/jon-server-3.1.0.GA.zip
eap plugin: http://porkchop.devel.redhat.com/released/JBossON/3.1.0/GA/jon-plugin-pack-eap-3.1.0.GA.zip
jdg plugin: http://porkchop.devel.redhat.com/released/JBossDG/6.0.0/jboss-datagrid-rhq-plugin-6.0.0.GA.zip
please get attached a fragment from datagrid server log.
Is the JDG you were looking at the right version? In your log I see
16:28:00,299 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss Data Grid 6.0.0.ER11-redhat-1 (AS 7.1.2.Final-redhat-1) started in 5003ms
This works for me with all GA bits - see screen shot
Created attachment 595996 [details]
having into consideration https://bugzilla.redhat.com/show_bug.cgi?id=837362 - this bug is being marked as verified.
no duplicate resource is being shown in jon gui.
Bulk closing of old issues in VERIFIED state.