Skip to content

Commit

Permalink
ISPN-6402 Default GMS.join_timeout is too long
Browse files Browse the repository at this point in the history
* Change the production default to 5000ms, and the tests to 2000ms.
* Set the jgroups.join_timeout property for Arquillian/JCache tests
  • Loading branch information
danberindei authored and tristantarrant committed Mar 31, 2016
1 parent 3e09ed2 commit bd39c65
Show file tree
Hide file tree
Showing 31 changed files with 337 additions and 163 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
max_bytes="1M"
/>
<pbcast.GMS print_local_addr="false"
join_timeout="15000"
join_timeout="${jgroups.join_timeout:5000}"
/>
<MFC max_credits="2m"
min_threshold="0.40"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
max_bytes="1M"
/>
<pbcast.GMS print_local_addr="false"
join_timeout="15000"
join_timeout="${jgroups.join_timeout:5000}"
/>
<MFC max_credits="2m"
min_threshold="0.40"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
max_bytes="1M"
/>
<pbcast.GMS print_local_addr="false"
join_timeout="15000"
join_timeout="${jgroups.join_timeout:5000}"
/>
<MFC max_credits="2m"
min_threshold="0.40"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
max_bytes="1M"
/>
<pbcast.GMS print_local_addr="false"
join_timeout="15000"
join_timeout="${jgroups.join_timeout:5000}"
/>
<UFC max_credits="2m"
min_threshold="0.40"
Expand Down
2 changes: 1 addition & 1 deletion core/src/test/resources/configs/xsite/bridge.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

<pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
max_bytes="8m"/>
<pbcast.GMS print_local_addr="false" join_timeout="3000"
<pbcast.GMS print_local_addr="false" join_timeout="${jgroups.join_timeout:2000}"
view_bundling="false"/>

<MFC max_credits="2M"
Expand Down
2 changes: 1 addition & 1 deletion core/src/test/resources/stacks/tcp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
conn_expiry_timeout="0"/>

<pbcast.STABLE stability_delay="500" desired_avg_gossip="5000" max_bytes="1m"/>
<pbcast.GMS print_local_addr="false" join_timeout="3000" view_bundling="false"/>
<pbcast.GMS print_local_addr="false" join_timeout="${jgroups.join_timeout:2000}" view_bundling="false"/>
<tom.TOA/> <!-- the Total Order Anycast is only needed for total order transactions (in distributed mode)-->

<MFC max_credits="2m" min_threshold="0.40"/>
Expand Down
2 changes: 1 addition & 1 deletion core/src/test/resources/stacks/tcp_mping/tcp1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<RSVP />
<pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
max_bytes="400000"/>
<pbcast.GMS print_local_addr="false" join_timeout="7000" view_bundling="false"/>
<pbcast.GMS print_local_addr="false" join_timeout="${jgroups.join_timeout:2000}" view_bundling="false"/>
<tom.TOA/> <!-- the Total Order Anycast is only needed for total order transactions (in distributed mode)-->
<FC max_credits="2m"
min_threshold="0.40"/>
Expand Down
2 changes: 1 addition & 1 deletion core/src/test/resources/stacks/tcp_mping/tcp2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<RSVP />
<pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
max_bytes="400000"/>
<pbcast.GMS print_local_addr="false" join_timeout="7000" view_bundling="false"/>
<pbcast.GMS print_local_addr="false" join_timeout="${jgroups.join_timeout:2000}" view_bundling="false"/>
<tom.TOA/> <!-- the Total Order Anycast is only needed for total order transactions (in distributed mode)-->
<FC max_credits="2m"
min_threshold="0.40"/>
Expand Down
2 changes: 1 addition & 1 deletion core/src/test/resources/stacks/udp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
conn_expiry_timeout="0"/>

<pbcast.STABLE stability_delay="1000" desired_avg_gossip="5000" max_bytes="1m"/>
<pbcast.GMS print_local_addr="false" join_timeout="3000" view_bundling="false"/>
<pbcast.GMS print_local_addr="false" join_timeout="${jgroups.join_timeout:2000}" view_bundling="false"/>
<tom.TOA/> <!-- the Total Order Anycast is only needed for total order transactions (in distributed mode)-->

<UFC max_credits="2m" min_threshold="0.40"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
discard_delivered_msgs="true"/>
<UNICAST3 conn_expiry_timeout="0"/>
<pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000" max_bytes="400000"/>
<pbcast.GMS print_local_addr="true" join_timeout="60000" view_bundling="true"/>
<pbcast.GMS print_local_addr="true" join_timeout="${jgroups.join_timeout:5000}" view_bundling="true"/>
<FC max_credits="2m" min_threshold="0.40"/>
<FRAG2 frag_size="60000"/>
<pbcast.STREAMING_STATE_TRANSFER/>
Expand Down
2 changes: 1 addition & 1 deletion demos/gui/src/main/release/etc/config/jgroups-relay1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<UNICAST3 conn_expiry_timeout="0"/>
<pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
max_bytes="1000000"/>
<pbcast.GMS print_local_addr="true" join_timeout="5000"
<pbcast.GMS print_local_addr="true" join_timeout="${jgroups.join_timeout:5000}"
max_bundling_time="200"
view_bundling="true"/>
<FC max_credits="2M"
Expand Down
2 changes: 1 addition & 1 deletion demos/gui/src/main/release/etc/config/jgroups-relay2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<UNICAST3 conn_expiry_timeout="0"/>
<pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
max_bytes="1000000"/>
<pbcast.GMS print_local_addr="true" join_timeout="5000"
<pbcast.GMS print_local_addr="true" join_timeout="${jgroups.join_timeout:5000}"
max_bundling_time="200"
view_bundling="true"/>
<FC max_credits="2M"
Expand Down
2 changes: 1 addition & 1 deletion demos/gui/src/main/release/etc/config/jgroups-tcp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

<pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
max_bytes="10m"/>
<pbcast.GMS print_local_addr="true" join_timeout="5000"
<pbcast.GMS print_local_addr="true" join_timeout="${jgroups.join_timeout:5000}"
max_bundling_time="30"
view_bundling="true"/>
<MFC max_credits="2M"
Expand Down
11 changes: 9 additions & 2 deletions integrationtests/all-remote-it/src/test/resources/arquillian.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,21 @@
<configuration>
<property name="jbossHome">${project.build.directory}/node1/infinispan-server-${project.version}</property>
<property name="serverConfig">clustered.xml</property>
<property name="javaVmArguments">-Xmx512m -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1 -Djboss.server.default.config=clustered.xml -Djboss.node.name=node1</property>
<property name="javaVmArguments">-Xmx512m -Djava.net.preferIPv4Stack=true
-Djgroups.bind_addr=127.0.0.1 -Djboss.server.default.config=clustered.xml
-Djboss.node.name=node1 -Djgroups.join_timeout=2000
</property>
</configuration>
</container>
<container qualifier="container-2" mode="manual">
<configuration>
<property name="jbossHome">${project.build.directory}/node2/infinispan-server-${project.version}</property>
<property name="serverConfig">clustered.xml</property>
<property name="javaVmArguments">-Xmx512m -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1 -Djboss.server.default.config=clustered.xml -Djboss.node.name=node2 -Djboss.socket.binding.port-offset=10000</property>
<property name="javaVmArguments">-Xmx512m -Djava.net.preferIPv4Stack=true
-Djgroups.bind_addr=127.0.0.1 -Djboss.server.default.config=clustered.xml
-Djboss.node.name=node2 -Djboss.socket.binding.port-offset=10000
-Djgroups.join_timeout=2000
</property>
<property name="managementPort">19990</property>
</configuration>
</container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
<property name="serverConfig">standalone-test.xml</property>
<!-- To debug the Arquillian managed application server: -->
<!-- property name="javaVmArguments">-Djboss.node.name=remote-client -Djboss.socket.binding.port-offset=100 -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y -Xmx512m</property -->
<property name="javaVmArguments">-Djboss.node.name=remote-client -Djboss.socket.binding.port-offset=100 -Xmx512m</property>
<property name="javaVmArguments">-Djboss.node.name=remote-client
-Djboss.socket.binding.port-offset=100 -Xmx512m -Djgroups.join_timeout=2000
</property>
<property name="managementPort">10090</property>
</configuration>
</container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@
<container qualifier="container.active-1" default="true">
<configuration>
<property name="jbossHome">${basedir}/target/node1/wildfly-${version.org.wildfly}</property>
<property name="javaVmArguments">-Xmx512m -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1</property>
<property name="javaVmArguments">-Xmx512m -Djava.net.preferIPv4Stack=true
-Djgroups.bind_addr=127.0.0.1 -Djgroups.join_timeout=2000
</property>
<!-- To debug the Arquillian managed application server: -->
<!-- property name="javaVmArguments">-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y -Xmx512m -Dorg.jboss.remoting-jmx.timeout=300 -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1</property-->
</configuration>
</container>
<container qualifier="container.active-2">
<configuration>
<property name="jbossHome">${basedir}/target/node2/wildfly-${version.org.wildfly}</property>
<property name="javaVmArguments">-Djboss.socket.binding.port-offset=10000 -Xmx512m -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1</property>
<property name="javaVmArguments">-Djboss.socket.binding.port-offset=10000 -Xmx512m
-Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1 -Djgroups.join_timeout=2000
</property>
<property name="managementPort">19990</property>
</configuration>
</container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
<property name="jbossHome">${basedir}/target/node1/wildfly-${version.org.wildfly}</property>
<!-- Needed for JMS tests -->
<property name="serverConfig">standalone-full-testqueues.xml</property>
<property name="javaVmArguments">-Xmx512m -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1 -XX:+IgnoreUnrecognizedVMOptions</property>
<property name="javaVmArguments">-Xmx512m -Djava.net.preferIPv4Stack=true
-Djgroups.bind_addr=127.0.0.1 -Djgroups.join_timeout=2000 -XX:+IgnoreUnrecognizedVMOptions
</property>
<!-- To debug the Arquillian managed application server: -->
<!--<property name="javaVmArguments">-Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=y -Xmx512m -Dorg.jboss.remoting-jmx.timeout=300 -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1</property>-->
</configuration>
Expand All @@ -23,7 +25,10 @@
<property name="jbossHome">${basedir}/target/node2/wildfly-${version.org.wildfly}</property>
<!-- Needed for JMS tests -->
<property name="serverConfig">standalone-full-testqueues.xml</property>
<property name="javaVmArguments">-Djboss.socket.binding.port-offset=10000 -Xmx512m -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1 -XX:+IgnoreUnrecognizedVMOptions</property>
<property name="javaVmArguments">-Djboss.socket.binding.port-offset=10000 -Xmx512m
-Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1
-Djgroups.join_timeout=2000 -XX:+IgnoreUnrecognizedVMOptions
</property>
<property name="managementPort">19990</property>
<!--<property name="javaVmArguments">-Xrunjdwp:transport=dt_socket,address=5006,server=y,suspend=y -Xmx512m -Dorg.jboss.remoting-jmx.timeout=300 -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1</property>-->
</configuration>
Expand Down
20 changes: 12 additions & 8 deletions integrationtests/security-it/src/test/resources/arquillian.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!--Needed for security domain configuration-->
<property name="serverConfig">standalone.xml</property>
<property name="javaVmArguments">
-Djboss.node.name=testnode
-Djboss.node.name=testnode -Djgroups.join_timeout=2000
</property>
<property name="managementPort">9990</property>
</configuration>
Expand All @@ -33,10 +33,11 @@
<property name="serverConfig">standalone-ha.xml</property>
<property name="javaVmArguments">-Djboss.node.name=node0
-Djboss.socket.binding.port-offset=100
-Djava.net.preferIPv4Stack=true
-Dsasl.username=test_user
-Djava.net.preferIPv4Stack=true
-Dsasl.username=test_user
-Dsasl.password=test_password
-Dsasl.realm=test_realm
-Djgroups.join_timeout=2000
</property>
<property name="managementAddress">${node0.mgmt.addr:127.0.0.1}</property>
<property name="managementPort">10090</property>
Expand Down Expand Up @@ -71,10 +72,11 @@
<property name="serverConfig">standalone-ha.xml</property>
<property name="javaVmArguments">-Djboss.node.name=node1
-Djboss.socket.binding.port-offset=200
-Djava.net.preferIPv4Stack=true
-Dsasl.username=test_user
-Dsasl.password=wrong_password
-Djava.net.preferIPv4Stack=true
-Dsasl.username=test_user
-Dsasl.password=wrong_password
-Dsasl.realm=test_realm
-Djgroups.join_timeout=2000
</property>
<property name="managementPort">10190</property>
</configuration>
Expand All @@ -90,10 +92,11 @@
<property name="serverConfig">standalone-ha.xml</property>
<property name="javaVmArguments">-Djboss.node.name=node0
-Djboss.socket.binding.port-offset=100
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true
-Dsasl.credentials.properties=${basedir}/target/test-classes/jgroups-simple-auth.properties
-Dsasl.local.principal=test_user
-Dsasl.realm=test_realm
-Djgroups.join_timeout=2000
</property>
<property name="managementPort">10090</property>
</configuration>
Expand All @@ -108,10 +111,11 @@
<property name="serverConfig">standalone-ha.xml</property>
<property name="javaVmArguments">-Djboss.node.name=node1
-Djboss.socket.binding.port-offset=200
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true
-Dsasl.credentials.properties=${basedir}/target/test-classes/jgroups-simple-auth.properties
-Dsasl.local.principal=joining_test_user
-Dsasl.realm=test_realm
-Djgroups.join_timeout=2000
</property>
<property name="managementPort">10190</property>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
server_callback_handler_class="org.infinispan.test.integration.security.utils.SaslPropCallbackHandler" />

<pbcast.STABLE stability_delay="500" desired_avg_gossip="5000" max_bytes="1m"/>
<pbcast.GMS print_local_addr="false" join_timeout="3000" view_bundling="false"/>
<pbcast.GMS print_local_addr="false" join_timeout="${jgroups.join_timeout:2000}" view_bundling="false"/>

<UFC max_credits="2m" min_threshold="0.40"/>
<MFC max_credits="2m" min_threshold="0.40"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
login_module_name="krb-node1-fail" />

<pbcast.STABLE stability_delay="500" desired_avg_gossip="5000" max_bytes="1m"/>
<pbcast.GMS print_local_addr="false" join_timeout="3000" view_bundling="false"/>
<pbcast.GMS print_local_addr="false" join_timeout="${jgroups.join_timeout:2000}" view_bundling="false"/>


<UFC max_credits="2m" min_threshold="0.40"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
login_module_name="krb-node1" />

<pbcast.STABLE stability_delay="500" desired_avg_gossip="5000" max_bytes="1m"/>
<pbcast.GMS print_local_addr="false" join_timeout="3000" view_bundling="false"/>
<pbcast.GMS print_local_addr="false" join_timeout="${jgroups.join_timeout:2000}" view_bundling="false"/>


<UFC max_credits="2m" min_threshold="0.40"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
sasl_props="com.sun.security.sasl.digest.realm=test_realm" />

<pbcast.STABLE stability_delay="500" desired_avg_gossip="5000" max_bytes="1m"/>
<pbcast.GMS print_local_addr="false" join_timeout="3000" view_bundling="false"/>
<pbcast.GMS print_local_addr="false" join_timeout="${jgroups.join_timeout:2000}" view_bundling="false"/>

<UFC max_credits="2m" min_threshold="0.40"/>
<MFC max_credits="2m" min_threshold="0.40"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
client_callback_handler_class="org.infinispan.test.integration.security.utils.SaslPropCallbackHandler" />

<pbcast.STABLE stability_delay="500" desired_avg_gossip="5000" max_bytes="1m"/>
<pbcast.GMS print_local_addr="false" join_timeout="3000" view_bundling="false"/>
<pbcast.GMS print_local_addr="false" join_timeout="${jgroups.join_timeout:2000}" view_bundling="false"/>


<UFC max_credits="2m" min_threshold="0.40"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
sasl_props="com.sun.security.sasl.digest.realm=test_realm" />

<pbcast.STABLE stability_delay="500" desired_avg_gossip="5000" max_bytes="1m"/>
<pbcast.GMS print_local_addr="false" join_timeout="3000" view_bundling="false"/>
<pbcast.GMS print_local_addr="false" join_timeout="${jgroups.join_timeout:2000}" view_bundling="false"/>

<UFC max_credits="2m" min_threshold="0.40"/>
<MFC max_credits="2m" min_threshold="0.40"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
sasl_props="com.sun.security.sasl.digest.realm=test_realm" />

<pbcast.STABLE stability_delay="500" desired_avg_gossip="5000" max_bytes="1m"/>
<pbcast.GMS print_local_addr="false" join_timeout="3000" view_bundling="false"/>
<pbcast.GMS print_local_addr="false" join_timeout="${jgroups.join_timeout:2000}" view_bundling="false"/>

<UFC max_credits="2m" min_threshold="0.40"/>
<MFC max_credits="2m" min_threshold="0.40"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
client_callback_handler_class="org.jgroups.auth.sasl.SimpleAuthorizingCallbackHandler" />

<pbcast.STABLE stability_delay="500" desired_avg_gossip="5000" max_bytes="1m"/>
<pbcast.GMS print_local_addr="false" join_timeout="3000" view_bundling="false"/>
<pbcast.GMS print_local_addr="false" join_timeout="${jgroups.join_timeout:2000}" view_bundling="false"/>


<UFC max_credits="2m" min_threshold="0.40"/>
Expand Down

0 comments on commit bd39c65

Please sign in to comment.