]
Bela Ban commented on JGRP-1183:
--------------------------------
The config I used:
<config xmlns="urn:org:jgroups"
<TCP bind_port="7800"
loopback="true"
recv_buf_size="${tcp.recv_buf_size:20M}"
send_buf_size="${tcp.send_buf_size:640K}"
discard_incompatible_packets="true"
max_bundle_size="64K"
max_bundle_timeout="30"
enable_bundling="true"
use_send_queues="true"
sock_conn_timeout="300"
timer.num_threads="4"
thread_pool.enabled="true"
thread_pool.min_threads="1"
thread_pool.max_threads="10"
thread_pool.keep_alive_time="5000"
thread_pool.queue_enabled="false"
thread_pool.queue_max_size="100"
thread_pool.rejection_policy="discard"
oob_thread_pool.enabled="true"
oob_thread_pool.min_threads="1"
oob_thread_pool.max_threads="8"
oob_thread_pool.keep_alive_time="5000"
oob_thread_pool.queue_enabled="false"
oob_thread_pool.queue_max_size="100"
oob_thread_pool.rejection_policy="discard"/>
<TCPPING timeout="3000"
initial_hosts="${jgroups.tcpping.initial_hosts:192.168.1.5[7800],192.168.1.5[7900]}"
port_range="30"
num_initial_members="1"/>
<MERGE2 min_interval="10000"
max_interval="30000"/>
<FD_SOCK/>
<FD timeout="3000" max_tries="3" />
<VERIFY_SUSPECT timeout="1500" />
<BARRIER />
<pbcast.NAKACK
use_mcast_xmit="false" gc_lag="0"
retransmit_timeout="300,600,1200,2400,4800"
discard_delivered_msgs="true"/>
<UNICAST timeout="300,600,1200" />
<pbcast.STABLE stability_delay="1000"
desired_avg_gossip="50000"
max_bytes="400K"/>
<pbcast.GMS print_local_addr="true" join_timeout="3000"
view_bundling="true"/>
<FC max_credits="2M"
min_threshold="0.10"/>
<FRAG2 frag_size="60K" />
<pbcast.STREAMING_STATE_TRANSFER/>
<!-- <pbcast.STATE_TRANSFER/> -->
</config>
TCPPING fails to discover initial members if port-range is greater
than 8
-------------------------------------------------------------------------
Key: JGRP-1183
URL:
https://jira.jboss.org/jira/browse/JGRP-1183
Project: JGroups
Issue Type: Bug
Affects Versions: 2.8
Reporter: Karthik Abram
Assignee: Bela Ban
Fix For: 2.10
I also tested this with 2.10.0.ALPHA4
I have TCPPING configured this way:
<TCPPING timeout="3000"
initial_hosts="localhost[11000],localhost[12000]"
port_range="3"
num_initial_members="1"/>
I notice that if I start up a process on port 11000 and then a second process that binds
to 11001, if the port-range is set to 3 (it seems any port-range less than 8) the
processes successfully find each other. When I set the port-range to 9 or higher, I see
GET_MBRS_RSP responses from the processes with each other's information but nothing is
discovered. I suspect some issue with threading/race-condition. Here is the trace log for
TCPPING with port-range = 50:
2010-04-02 09:34:50,219 TRACE TCPPING - - received GET_MBRS_REQ from windowbox-64914,
sending response [PING: type=GET_MBRS_RSP, arg=own_addr=windowbox-64914, view
id=[windowbox-32305|0], is_server=true, is_coord=false, logical_name=windowbox-64914,
physical_addrs=0.0.0.0:11001]
2010-04-02 09:34:52,222 TRACE TCPPING - - received GET_MBRS_REQ from windowbox-64914,
sending response [PING: type=GET_MBRS_RSP, arg=own_addr=windowbox-32305, view
id=[windowbox-32305|0], is_server=true, is_coord=true, logical_name=windowbox-32305,
physical_addrs=0.0.0.0:11000]
2010-04-02 09:34:54,724 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11010
2010-04-02 09:34:54,724 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11011
2010-04-02 09:34:54,724 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11008
2010-04-02 09:34:54,724 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11009
2010-04-02 09:34:54,724 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11006
2010-04-02 09:34:54,724 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11007
2010-04-02 09:34:54,724 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11004
2010-04-02 09:34:54,724 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11005
2010-04-02 09:34:54,724 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11002
2010-04-02 09:34:54,724 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11003
2010-04-02 09:34:54,724 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11000
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11001
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11027
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11026
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11025
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11024
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11023
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11022
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11021
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11020
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11019
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11018
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11017
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11016
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11015
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11014
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11013
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11012
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12043
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12042
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12041
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11048
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12040
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11049
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12039
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11046
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12038
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11047
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12037
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11044
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12036
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11045
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12049
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12048
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12047
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12046
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12045
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12044
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12026
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11035
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12027
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11034
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12024
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11033
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12025
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11032
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12022
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11031
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12023
2010-04-02 09:34:54,727 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11030
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12020
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11029
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12021
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11028
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12034
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11043
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12035
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11042
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12032
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11041
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12033
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11040
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12030
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11039
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12031
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11038
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12028
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11037
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12029
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:11036
2010-04-02 09:34:54,729 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12009
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12008
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12011
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12010
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12005
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12004
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12007
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12006
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12017
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12016
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12019
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12018
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12013
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12012
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12015
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12014
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12000
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12001
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12002
2010-04-02 09:34:54,730 TRACE TCPPING - - [FIND_INITIAL_MBRS] sending PING request to
10.3.10.236:12003
2010-04-02 09:34:56,236 TRACE TCPPING - - discovery took 3003 ms: responses: 0 total (0
servers (0 coord), 0 clients)
2010-04-02 09:34:59,728 TRACE TCPPING - - received GET_MBRS_REQ from windowbox-32305,
sending response [PING: type=GET_MBRS_RSP, arg=own_addr=windowbox-32305, view
id=[windowbox-32305|0], is_server=true, is_coord=true, logical_name=windowbox-32305]
2010-04-02 09:34:59,728 TRACE TCPPING - - received GET_MBRS_RSP from windowbox-32305:
own_addr=windowbox-32305, view id=[windowbox-32305|0], is_server=true, is_coord=true,
logical_name=windowbox-32305
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: