Bug 825818 - [jdg] Duplicate infinspan resource
Summary: [jdg] Duplicate infinspan resource
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.4
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ---
: JON 3.1.0
Assignee: Heiko W. Rupp
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: as7-plugin 826207 826228 829331
TreeView+ depends on / blocked
 
Reported: 2012-05-28 14:49 UTC by Libor Zoubek
Modified: 2015-11-02 00:42 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
: 826207 826228 (view as bug list)
Environment:
Last Closed: 2013-09-03 15:08:29 UTC
Embargoed:


Attachments (Terms of Use)
JDG server.log (51.95 KB, application/octet-stream)
2012-05-28 14:49 UTC, Libor Zoubek
no flags Details
jdg server log (71.09 KB, text/plain)
2012-07-02 09:17 UTC, Armine Hovsepyan
no flags Details
Screenshot (16.19 KB, image/png)
2012-07-03 15:29 UTC, Heiko W. Rupp
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 837362 0 low CLOSED NPE on console 2021-02-22 00:41:40 UTC

Internal Links: 837362

Description Libor Zoubek 2012-05-28 14:49:34 UTC
Created attachment 587246 [details]
JDG server.log

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

How reproducible:always


Steps to Reproduce:
1.import JDG
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

Comment 1 Libor Zoubek 2012-05-29 08:08:56 UTC
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.

Comment 3 Mike Foley 2012-05-29 13:35:50 UTC
marking this URGENT/URGENT and JON 3.1 target

Comment 4 Tristan Tarrant 2012-05-29 15:32:50 UTC
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.

Comment 5 Charles Crouch 2012-05-29 15:57:48 UTC
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.

Comment 6 Mike Foley 2012-05-29 18:37:50 UTC
Release blocking per team decision.

Comment 8 Heiko W. Rupp 2012-05-29 20:54:05 UTC
release branch 0b46807

Comment 9 Armine Hovsepyan 2012-07-02 09:17:13 UTC
Created attachment 595683 [details]
jdg server log

Comment 10 Armine Hovsepyan 2012-07-02 09:22:56 UTC
hi all,


I'm sorry, bug is still visible.

versions used.

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.

Regards,
Armine

Comment 11 Heiko W. Rupp 2012-07-03 15:28:38 UTC
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

Comment 12 Heiko W. Rupp 2012-07-03 15:29:23 UTC
Created attachment 595996 [details]
Screenshot

Comment 13 Armine Hovsepyan 2012-07-04 11:33:51 UTC
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.

Comment 14 Heiko W. Rupp 2013-09-03 15:08:29 UTC
Bulk closing of old issues in VERIFIED state.


Note You need to log in before you can comment on or make changes to this bug.