[jboss-user] [Clustering/JBoss] - Re: Forcing Topology change
kpandey
do-not-reply at jboss.com
Wed Aug 30 13:36:40 EDT 2006
On first machine 10.0.1.62 ie kumar-pc
| <Config>
| <TCP bind_addr="kumar-pc" start_port="7800" loopback="true"/>
| <TCPPING initial_hosts="kumar-pc[7800],kumar-lnx[7800]" port_range="3" timeout="3500"
| num_initial_members="3" up_thread="true" down_thread="true"/>
| <MERGE2 min_interval="5000" max_interval="10000"/>
| <FD shun="true" timeout="2500" max_tries="5" up_thread="true" down_thread="true" />
| <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false" />
| <pbcast.NAKACK down_thread="true" up_thread="true" gc_lag="100"
| retransmit_timeout="3000"/>
| <pbcast.STABLE desired_avg_gossip="20000" down_thread="false" up_thread="false" />
| <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="false"
| print_local_addr="true" down_thread="true" up_thread="true"/>
| <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
| </Config>
On second machine 10.0.1.61 ie kumar-lnx
<Config>
| <TCP bind_addr="kumar-lnx" start_port="7800" loopback="true"/>
| <TCPPING initial_hosts="kumar-lnx[7800],kumar-pc[7800]" port_range="3" timeout="3500"
| num_initial_members="3" up_thread="true" down_thread="true"/>
| <MERGE2 min_interval="5000" max_interval="10000"/>
| <FD shun="true" timeout="2500" max_tries="5" up_thread="true" down_thread="true" />
| <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false" />
| <pbcast.NAKACK down_thread="true" up_thread="true" gc_lag="100"
| retransmit_timeout="3000"/>
| <pbcast.STABLE desired_avg_gossip="20000" down_thread="false" up_thread="false" />
| <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="false"
| print_local_addr="true" down_thread="true" up_thread="true"/>
| <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
| </Config>
I bring 10.0.1.62 before 10.0.1.61 so that it is running as Master. Then I stop partition on 10.0.1.62. Partition closes. 10.0.1.62 is removed from 10.0.1.61's current view.
I start partition on 10.0.1.62. It comes up but is unable to see 10.0.1.61 and hence runs in master mode.
console output on kumar-pc (10.0.1.62) after invoking partition stop
10:21:04,578 INFO [DefaultPartition] Closing partition DefaultPartition
10:21:04,594 INFO [ConnectionTable] exception is java.net.SocketException: socket closed
10:21:04,594 INFO [ConnectionTable] exception is java.net.SocketException: socket closed
10:21:04,594 INFO [ConnectionTable] addr=10.0.1.61:7800 (additional data: 14 bytes), connections are connections (0):
10:21:04,594 INFO [DefaultPartition] Partition DefaultPartition closed.
10:21:04,594 WARN [ConnectionTable] local_addr is null
10:21:04,594 INFO [ConnectionTable] connection was created to 10.0.1.61:7800 (additional data: 14 bytes)
10:21:04,609 INFO [ConnectionTable] created socket to 10.0.1.61:7800 (additional data: 14 bytes)
10:21:04,609 INFO [ConnectionTable] exception is java.io.EOFException
10:21:04,609 INFO [ConnectionTable] addr=10.0.1.61:7800 (additional data: 14 bytes), connections are connections (0):
console output on kumar-pc (10.0.1.62) after invoking partition start
10:21:36,235 INFO [ConnectionTable] server socket created on kumar-pc:7800
10:21:36,251 INFO [STDOUT]
-------------------------------------------------------
GMS: address is kumar-pc:7800 (additional data: 14 bytes)
-------------------------------------------------------
10:21:39,751 INFO [DefaultPartition] Number of cluster members: 1
10:21:39,751 INFO [DefaultPartition] Other members: 0
10:21:39,751 INFO [DefaultPartition] New cluster view for partition DefaultPartition (id: 0, delta: 0) : [10.0.1.62:1099]
10:21:39,751 INFO [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
10:21:39,766 INFO [DefaultPartition] I am (10.0.1.62:1099) received membershipChanged event:
10:21:39,766 INFO [DefaultPartition] Dead members: 0 ([])
10:21:39,766 INFO [DefaultPartition] New Members : 0 ([])
10:21:39,766 INFO [DefaultPartition] All Members : 1 ([10.0.1.62:1099])
10:21:46,048 INFO [ConnectionTable] accepted connection, client_sock=Socket[addr=/10.0.1.61,port=47354,localport=7800]
10:21:46,048 INFO [ConnectionTable] input_cookie is bela
10:21:46,938 INFO [ConnectionTable] connection was created to 10.0.1.61:7800 (additional data: 14 bytes)
Note that it establishes connection to 10.0.1.61 but doesn't find the instance running there.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968443#3968443
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968443
More information about the jboss-user
mailing list