History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: JBPAPP-411
Type: Bug Bug
Status: Resolved Resolved
Resolution: Done
Priority: Major Major
Assignee: Deepak Bhole
Reporter: Jimmy Wilson
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JBoss Enterprise Platform App Edition

RPM Installed Init Script Incorrectly Configures Overide UDP Port Setting

Created: 08/Nov/07 11:40 PM   Updated: 28/Jan/08 03:10 PM
Component/s: App Server
Affects Version/s: 4.2.0.GA , 4.2.0.GA_CP01
Fix Version/s: 4.2.0.GA_CP02 , 4.3.0.BETA3
Security Level: Public (Everyone can see)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Related
This issue related:
SOA-136 Need to check that IR6 Linux service ... Major Closed
 

Affects: Release Notes
Workaround: Workaround Exists
Workaround Description: Comment the line of the init script that reads "JBOSS_UDP_PORT=${JBOSS_UDP_PORT:-"45566"}", or remove all of the lines specified in the description of this JIRA issue.
Complexity: Low
Help Desk Ticket Reference: https://na1.salesforce.com/50030000003kVZq


 Description  « Hide
The 'jbossas' init script installed by the EAP RPM incorrectly sets the jboss.partition.udpPort system property which overrides the XML settings in the various JGroups protocol stack configurations. It also rendors the other JGroups UDP port properties that are being set useless.

The effect of this incorrect configuration is that all four cluster channels that exist in EAP 4.2 will see each other and complain about this repeatedly.

To fix this, all references to the jboss.partition.udpPort system property need to be removed from this file. Specifically, lines 70 and 71:

#define the jgroups UDP port (multicast) for clustering
JBOSS_UDP_PORT=${JBOSS_UDP_PORT:-"45566"}

and lines 153 and 154:

[ "x$JBOSS_UDP_PORT" != "x" ] && \
JAVA_OPTS="$JAVA_OPTS -Djboss.partition.udpPort=$JBOSS_UDP_PORT"

Line numbers may vary based on the specific init file because of manual edits and/or environment differences, but the line text should be the same.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order:
Deepak Bhole [26/Nov/07 10:32 AM]
You can still add random system properties via run.conf, but with rpm we discourage modifying run.conf, instead providing a config file that makes it easy to set the most commonly used values. As you stated, since this property is unlikely to be ever used, I see no reason to keep it. I will remove it.

Deepak Bhole [26/Nov/07 10:54 AM]
Hmm, the init script currently has:

#define the Http Session Replication UDP port (multicast)
JBOSS_UDP_PORT_WP=${JBOSS_UDP_PORT_WP:-"45577"}

#define the UDP port for JBoss clustering (multicast)
JBOSS_UDP_PORT_HA=${JBOSS_UDP_PORT_HA:-"45566"}

#define the UDP port for the ejb3 entity cache cluster (multicast)
JBOSS_UDP_PORT_EJB3=${JBOSS_UDP_PORT_EJB3:-"43333"}

#define the UDP port for ejb3 sfsb cache cluster (multicast)
JBOSS_UDP_PORT_EJB3SFSB=${JBOSS_UDP_PORT_EJB3SFSB:-"45551"}

and:

[ "x$JBOSS_UDP_PORT_WP" != "x" ] && \
JAVA_OPTS="$JAVA_OPTS -Djboss.webpartition.mcast_port=$JBOSS_UDP_PORT_WP"
[ "x$JBOSS_UDP_PORT_HA" != "x" ] && \
JAVA_OPTS="$JAVA_OPTS -Djboss.hapartition.mcast_port=$JBOSS_UDP_PORT_HA"
[ "x$JBOSS_UDP_PORT_EJB3" != "x" ] && \
JAVA_OPTS="$JAVA_OPTS -Djboss.ejb3entitypartition.mcast_port=$JBOSS_UDP_PORT_EJB3"
[ "x$JBOSS_UDP_PORT_EJB3SFSB" != "x" ] && \
JAVA_OPTS="$JAVA_OPTS -Djboss.ejb3sfsbpartition.mcast_port=$JBOSS_UDP_PORT_EJB3SFSB"

Based on the comment about 4 separate properties, this seems correct to me. Is it not?

Deepak Bhole [26/Nov/07 01:41 PM]
I don't see a "JBOSS_UDP_PORT" in the current cvs copies, only those 4 JBOSS_UDP_PORT_* ones ... what is the RPM version/release you're looking at?

Deepak Bhole [26/Nov/07 02:53 PM]
Ugh, I just did a cvs annotate and then remembered that I had changed this last week in my working copy and forgot all about it. That is why I was not "seeing it in cvs" . Sorry for the confusion :/ Okay, I'm removing the references to it now.