admin@glassfish.java.net

Re: ClassCastException with 'asadmin set' and duplicates in 'get'

From: Bobby Bissett <bobby.bissett_at_oracle.com>
Date: Wed, 7 Jul 2010 14:24:20 -0400

>
> I just fixed that issue. I have not been able to reproduce the
> duplicate situation but since you mentioned you edited the file by
> hand, it was hard to reproduce.
> let me know if you run into more issues.

Hi Jerome,

The class cast problem is fixed, but I'm still seeing the duplicate
values in an 'asadmin get.' Here's how to reproduce with a freshly-
unzipped app server:

1) ./asadmin start-domain
2) ./asadmin create-cluster c1
3) ./asadmin get "*" | grep heartbeats | grep c1

Output:
configs.config.c1-config.group-management-service.failure-
detection.max-missed-heartbeats=3

4) ./asadmin stop-domain
5) Edit domain.xml. Replace the <group-management-service /> element
in <config name="c1-config"> with this:

<group-management-service group-discovery-timeout-in-millis="5001">
<failure-detection
               max-missed-heartbeats="4"
               heartbeat-frequency-in-millis="2001"
               verify-failure-waittime-in-millis="1501"
               verify-failure-connect-timeout-in-millis="10001"/>
<property name="MULTICAST_POOLSIZE" value="301"/>
<property name="INCOMING_MESSAGE_QUEUE_SIZE" value="1000"/>
<property name="MAX_POOLSIZE" value="20"/>
<property name="FAILURE_DETECTION_TCP_RETRANSMIT_PORT" value="9000"/>
<property name="CORE_POOLSIZE" value="10"/>
<property name="WRITE_TIMEOUT" value="11"/>
<property name="START_TIMEOUT" value="12"/>
<property name="HIGH_WATER_MARK" value="12"/>
<property name="NUMBER_TO_RECLAIM" value="12"/>
<property name="MAX_PARALLEL" value="2"/>
</group-management-service>

6) ./asadmin start-domain
7) ./asadmin get "*" | grep heartbeats | grep c1

Output:

configs.config.c1-config.group-management-service.failure-
detection.max-missed-heartbeats=3
configs.config.c1-config.group-management-service.failure-
detection.max-missed-heartbeats=4

Thanks,
Bobby