Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1115555 - JGroups configuration files might be shadowed if the JDG infinispan-core library is provided as EAP module
JGroups configuration files might be shadowed if the JDG infinispan-core libr...
Status: CLOSED CURRENTRELEASE
Product: JBoss Data Grid 6
Classification: JBoss
Component: EAP modules (Show other bugs)
6.3.0
Unspecified Unspecified
unspecified Severity unspecified
: ER8
: 6.4.0
Assigned To: Martin Gencur
Martin Gencur
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-02 11:26 EDT by wfink
Modified: 2015-02-22 18:59 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously in Red Hat JBoss Data Grid, the default configuration files for JGroups were named <filename>jgroups-udp.xml</filename> and <filename>jgroups-tcp.xml</filename>. When a user provided their own configuration file with the same name, it was unexpectedly shadowed with the default one. This issue is now resolved in JBoss Data Grid 6.4. The default configuration files are now moved to the <filename class="directory">default-configs<filename> directory, renamed to <filename>default-jgroups-udp.xml</filename> and <filename>default-jgroups-tcp.xml</filename>. Additionally, if a user chooses the same name for their customized configuration files, a warning is logged.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-01-28 08:29:45 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker ISPN-4499 Major Resolved Prevent shadowing user-defined jgroups configuration file 2014-12-03 08:43:48 EST

  None (edit)
Description wfink 2014-07-02 11:26:15 EDT
Description of problem:
If JDG is used in embedded (library) mode and the application use JDG as modules the jgroups configuration files:
  jgroups-ec2.xml         
  jgroups-tcp.xml         
  jgroups-udp.xml
which might included in the application are shadowed, the customer configuration is overriden by the JDG default files.
The problem is that these filenames are used very often in examples so there is a high risk that they are used in real applications.

This behaviour is different if the infinispan libraries are included in the application packaging instead of the module dependency.


Actual results:
If the configuration file names jgroups-ec2.xml, jgroups-tcp.xml, jgroups-udp.xml are used in an application the cluster configuration does not have any effect as it will be overriden by the default files and this causes the use of wrong IP addresses or ports for cluster communication.

Expected results:
The files should provided in the customer context should never shadowed by files included in the infinispan library

Additional info:
The application should use individual application names for the jgroups configuration files to not have this issue.
Comment 2 Martin Gencur 2014-12-05 10:21:55 EST
PR: https://github.com/infinispan/jdg/pull/388

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