JBoss Remoting SVN: r4068 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/keep_alive.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-04-24 21:37:25 -0400 (Thu, 24 Apr 2008)
New Revision: 4068
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/keep_alive/StressHTTPInvokerTestServer.java
Log:
JBREM-930: Increased maxProcessors to 2000.
Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/keep_alive/StressHTTPInvokerTestServer.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/keep_alive/StressHTTPInvokerTestServer.java 2008-04-25 01:30:45 UTC (rev 4067)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/http/keep_alive/StressHTTPInvokerTestServer.java 2008-04-25 01:37:25 UTC (rev 4068)
@@ -47,7 +47,7 @@
{
metadata.putAll(PerformanceServerTest.parseMetadataString(newMetadata));
}
- metadata.put("maxProcessors", "1000");
+ metadata.put("maxProcessors", "2000");
init(metadata);
}
}
16 years, 7 months
JBoss Remoting SVN: r4067 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/oneway.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-04-24 21:30:45 -0400 (Thu, 24 Apr 2008)
New Revision: 4067
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/oneway/OnewayConnectionManagerTestCase.java
Log:
JBREM-930: In testHeavyLoadWithoutTimeouts() deleted test for size of connection pool.
Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/oneway/OnewayConnectionManagerTestCase.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/oneway/OnewayConnectionManagerTestCase.java 2008-04-25 01:00:39 UTC (rev 4066)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/socket/oneway/OnewayConnectionManagerTestCase.java 2008-04-25 01:30:45 UTC (rev 4067)
@@ -546,8 +546,12 @@
Thread.sleep(2000);
assertEquals(0, invoker.getNumberOfUsedConnections());
- assertEquals(100, pool.size());
+ // Commenting out the following test. If the server is busy, it is possible
+ // for some oneway connections to time out, in which case they would not
+ // be returned to the connection pool.
+ // assertEquals(100, pool.size());
+
client.disconnect();
connector.stop();
log.info(getName() + " PASSES");
16 years, 7 months
JBoss Remoting SVN: r4066 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/bisocket.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-04-24 21:00:39 -0400 (Thu, 24 Apr 2008)
New Revision: 4066
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/bisocket/BisocketTestCase.java
Log:
JBREM-930: In testServerQuickRestart() and testServerSlowRestart(), makes up to 5 attempts to restart Connector.
Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/bisocket/BisocketTestCase.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/bisocket/BisocketTestCase.java 2008-04-24 08:16:32 UTC (rev 4065)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/bisocket/BisocketTestCase.java 2008-04-25 01:00:39 UTC (rev 4066)
@@ -1785,7 +1785,20 @@
connector.stop();
log.info("STOPPED CONNECTOR");
- internalSetUp(port);
+ for (int i = 0; i < 5; i++)
+ {
+ try
+ {
+ internalSetUp(port);
+ break;
+ }
+ catch (Exception e)
+ {
+ log.info("unable to restart connector: retrying in 60 seconds");
+ Thread.sleep(60000);
+ }
+ }
+
log.info("RESTARTED CONNECTOR");
assertNotSame(connector, oldConnector);
@@ -1861,7 +1874,20 @@
connector.stop();
log.info("STOPPED CONNECTOR");
- internalSetUp(port);
+ for (int i = 0; i < 5; i++)
+ {
+ try
+ {
+ internalSetUp(port);
+ break;
+ }
+ catch (Exception e)
+ {
+ log.info("unable to restart connector: retrying in 60 seconds");
+ Thread.sleep(60000);
+ }
+ }
+
log.info("RESTARTED CONNECTOR");
assertNotSame(connector, oldConnector);
16 years, 7 months
JBoss Remoting SVN: r4065 - remoting2/branches/2.x.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-04-24 04:16:32 -0400 (Thu, 24 Apr 2008)
New Revision: 4065
Modified:
remoting2/branches/2.x/build.xml
Log:
JBREM-968: Updated version to 2.4.0.CR2.
Modified: remoting2/branches/2.x/build.xml
===================================================================
--- remoting2/branches/2.x/build.xml 2008-04-24 08:15:46 UTC (rev 4064)
+++ remoting2/branches/2.x/build.xml 2008-04-24 08:16:32 UTC (rev 4065)
@@ -224,9 +224,9 @@
<!-- Module name(s) & version -->
<property name="module.name" value="remoting"/>
<property name="module.Name" value="JBoss Remoting"/>
- <property name="module.version" value="2.4.0.CR1"/>
+ <property name="module.version" value="2.4.0.CR2"/>
<!-- extension is for the file suffix to use for dtribution build -->
- <property name="module.version.extension" value="2_4_0_CR1"/>
+ <property name="module.version.extension" value="2_4_0_CR2"/>
<property name="implementation.url" value="http://www.jboss.org/products/remoting"/>
<property name="root.dir" value="${basedir}"/>
16 years, 7 months
JBoss Remoting SVN: r4064 - remoting2/branches/2.x/src/main/org/jboss/remoting.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-04-24 04:15:46 -0400 (Thu, 24 Apr 2008)
New Revision: 4064
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java
Log:
JBREM-968: Updated version to 2.4.0.CR2.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java 2008-04-24 08:13:33 UTC (rev 4063)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/Version.java 2008-04-24 08:15:46 UTC (rev 4064)
@@ -34,7 +34,7 @@
public static final byte VERSION_2 = 2;
public static final byte VERSION_2_2 = 22;
- public static final String VERSION = "2.4.0.CR1 (Pinto)";
+ public static final String VERSION = "2.4.0.CR2 (Pinto)";
private static final byte byteVersion = VERSION_2_2;
private static byte defaultByteVersion = byteVersion;
private static boolean performVersioning = true;
16 years, 7 months
JBoss Remoting SVN: r4063 - remoting2/branches/2.x.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-04-24 04:13:33 -0400 (Thu, 24 Apr 2008)
New Revision: 4063
Modified:
remoting2/branches/2.x/build.xml
Log:
JBREM-967: (1) Replaced 2.2.2.SP5 version test with 2.2.2.SP7 test; (2) removed security manager parameters from versioning tests.
Modified: remoting2/branches/2.x/build.xml
===================================================================
--- remoting2/branches/2.x/build.xml 2008-04-24 08:10:12 UTC (rev 4062)
+++ remoting2/branches/2.x/build.xml 2008-04-24 08:13:33 UTC (rev 4063)
@@ -1637,10 +1637,10 @@
</antcall>
<!-- ******************************************************************************** -->
- <!-- Current <- -> 2.2.2.SP5 -->
+ <!-- Current <- -> 2.2.2.SP7 -->
<antcall target="tests.versioning.all_transports_pre_2.4" inheritrefs="true">
- <param name="jboss-junit-configuration" value="2_2_2_SP5-client"/>
- <param name="client.classpath" value="${etc.dir}/lib/remoting_2_2_2_SP5/jboss-remoting.jar"/>
+ <param name="jboss-junit-configuration" value="2_2_2_SP7-client"/>
+ <param name="client.classpath" value="${etc.dir}/lib/remoting_2_2_2_SP7/jboss-remoting.jar"/>
<param name="server.classpath" value="${output.lib.dir}/jboss-remoting.jar"/>
<param name="client.pre_2_0_compatible" value=""/>
<param name="server.pre_2_0_compatible" value=""/>
@@ -1649,8 +1649,8 @@
<param name="check_connection" value="false"/>
</antcall>
<antcall target="tests.versioning.all_transports_pre_2.4" inheritrefs="true">
- <param name="jboss-junit-configuration" value="2_2_2_SP5-server"/>
- <param name="server.classpath" value="${etc.dir}/lib/remoting_2_2_2_SP5/jboss-remoting.jar"/>
+ <param name="jboss-junit-configuration" value="2_2_2_SP7-server"/>
+ <param name="server.classpath" value="${etc.dir}/lib/remoting_2_2_2_SP7/jboss-remoting.jar"/>
<param name="client.classpath" value="${output.lib.dir}/jboss-remoting.jar"/>
<param name="client.pre_2_0_compatible" value=""/>
<param name="server.pre_2_0_compatible" value=""/>
@@ -2040,12 +2040,12 @@
<jvmarg value="-Dserver.pre_2_0_compatible=${server.pre_2_0_compatible}"/>
<jvmarg value="-Dremoting.metadata=check_connection=${check_connection}"/>
<jvmarg value="-Dcheck_content_type=${check_content_type}"/>
- <sysproperty key="${java.security.manager.key}" value="${java.security.manager}"/>
+ <!--sysproperty key="${java.security.manager.key}" value="${java.security.manager}"/>
<sysproperty key="java.security.policy" value="${java.security.policy}"/>
<sysproperty key="java.security.debug" value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="remoting.jar.dir" value="${basedir}/output/lib"/>
- <sysproperty key="log4j.jar.dir" value="${basedir}/lib/apache-log4j/lib"/>
+ <sysproperty key="log4j.jar.dir" value="${basedir}/lib/apache-log4j/lib"/-->
<sysproperty key="log4j.config.dir" value="${basedir}/src/etc"/>
<sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
<formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
@@ -2079,13 +2079,13 @@
<jvmarg value="-Dserver.pre_2_0_compatible=${server.pre_2_0_compatible}"/>
<jvmarg value="-Dremoting.metadata=check_connection=${check_connection}"/>
<jvmarg value="-Dcheck_content_type=${check_content_type}"/>
- <sysproperty key="${java.security.manager.key}" value="${java.security.manager}"/>
+ <!--sysproperty key="${java.security.manager.key}" value="${java.security.manager}"/>
<sysproperty key="java.security.policy" value="${java.security.policy}"/>
<sysproperty key="java.security.debug" value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="remoting.jar.dir" value="${basedir}/output/lib"/>
<sysproperty key="log4j.jar.dir" value="${basedir}/lib/apache-log4j/lib"/>
- <sysproperty key="log4j.config.dir" value="${basedir}/src/etc"/>
+ <sysproperty key="log4j.config.dir" value="${basedir}/src/etc"/-->
<sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
<formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
extension="-${jboss-junit-configuration}.xml"/>
@@ -2119,13 +2119,13 @@
<jvmarg value="-Dserver.pre_2_0_compatible=${server.pre_2_0_compatible}"/>
<jvmarg value="-Dremoting.metadata=check_connection=${check_connection}"/>
<jvmarg value="-Dcheck_content_type=${check_content_type}"/>
- <sysproperty key="${java.security.manager.key}" value="${java.security.manager}"/>
+ <!--sysproperty key="${java.security.manager.key}" value="${java.security.manager}"/>
<sysproperty key="java.security.policy" value="${java.security.policy}"/>
<sysproperty key="java.security.debug" value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="remoting.jar.dir" value="${basedir}/output/lib"/>
<sysproperty key="log4j.jar.dir" value="${basedir}/lib/apache-log4j/lib"/>
- <sysproperty key="log4j.config.dir" value="${basedir}/src/etc"/>
+ <sysproperty key="log4j.config.dir" value="${basedir}/src/etc"/-->
<sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
<formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
extension="-${jboss-junit-configuration}.xml"/>
@@ -2160,13 +2160,13 @@
<jvmarg value="-Dserver.pre_2_0_compatible=${server.pre_2_0_compatible}"/>
<jvmarg value="-Dcheck_content_type=${check_content_type}"/>
<sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
- <sysproperty key="${java.security.manager.key}" value="${java.security.manager}"/>
+ <!--sysproperty key="${java.security.manager.key}" value="${java.security.manager}"/>
<sysproperty key="java.security.policy" value="${java.security.policy}"/>
<sysproperty key="java.security.debug" value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="remoting.jar.dir" value="${basedir}/output/lib"/>
<sysproperty key="log4j.jar.dir" value="${basedir}/lib/apache-log4j/lib"/>
- <sysproperty key="log4j.config.dir" value="${basedir}/src/etc"/>
+ <sysproperty key="log4j.config.dir" value="${basedir}/src/etc"/-->
<formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
extension="-${jboss-junit-configuration}.xml"/>
<batchtest fork="yes" todir="${output.tests.results}"
@@ -2284,13 +2284,13 @@
<jvmarg value="-Dserver.pre_2_0_compatible=${server.pre_2_0_compatible}"/>
<jvmarg value="-Dclient.check_connection=${client.check_connection}"/>
<jvmarg value="-Dserver.check_connection=${server.check_connection}"/>
- <sysproperty key="${java.security.manager.key}" value="${java.security.manager}"/>
+ <!--sysproperty key="${java.security.manager.key}" value="${java.security.manager}"/>
<sysproperty key="java.security.policy" value="${java.security.policy}"/>
<sysproperty key="java.security.debug" value="${java.security.debug}"/>
<sysproperty key="build.home" value="${basedir}"/>
<sysproperty key="remoting.jar.dir" value="${basedir}/output/lib"/>
<sysproperty key="log4j.jar.dir" value="${basedir}/lib/apache-log4j/lib"/>
- <sysproperty key="log4j.config.dir" value="${basedir}/src/etc"/>
+ <sysproperty key="log4j.config.dir" value="${basedir}/src/etc"/-->
<sysproperty key="jboss-junit-configuration" value="${jboss-junit-configuration}"/>
<formatter classname="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"
extension="-${jboss-junit-configuration}.xml"/>
16 years, 7 months
JBoss Remoting SVN: r4062 - remoting2/branches/2.x/src/main/org/jboss/remoting/transport.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-04-24 04:10:12 -0400 (Thu, 24 Apr 2008)
New Revision: 4062
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/PortUtil.java
Log:
JBREM-865: Logs more informative message if IPv6 is not available.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/transport/PortUtil.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/transport/PortUtil.java 2008-04-24 08:08:02 UTC (rev 4061)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/transport/PortUtil.java 2008-04-24 08:10:12 UTC (rev 4062)
@@ -90,7 +90,8 @@
}
catch (IOException e)
{
- if ("Protocol family unavailable".equalsIgnoreCase(e.getMessage()))
+ if ("Protocol family unavailable".equalsIgnoreCase(e.getMessage()) ||
+ "Protocol family not supported".equalsIgnoreCase(e.getMessage()))
{
log.debug("perhaps IPv6 is not available: " + e.getMessage());
}
16 years, 7 months
JBoss Remoting SVN: r4061 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-04-24 04:08:02 -0400 (Thu, 24 Apr 2008)
New Revision: 4061
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6/ObjectNameWithIPv6AddressTestCase.java
Log:
JBREM-930: Skips tests if IPv6 is unavailable.
Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6/ObjectNameWithIPv6AddressTestCase.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6/ObjectNameWithIPv6AddressTestCase.java 2008-04-24 07:59:35 UTC (rev 4060)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6/ObjectNameWithIPv6AddressTestCase.java 2008-04-24 08:08:02 UTC (rev 4061)
@@ -22,6 +22,7 @@
package org.jboss.test.remoting.ipv6;
import java.net.InetAddress;
+import java.net.ServerSocket;
import java.security.AccessController;
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
@@ -59,6 +60,7 @@
private static Logger log = Logger.getLogger(ObjectNameWithIPv6AddressTestCase.class);
private static boolean firstTime = true;
+ private static boolean ipv6IsAvailable = true;
protected String host;
protected int port;
@@ -80,6 +82,21 @@
ConsoleAppender consoleAppender = new ConsoleAppender(layout);
Logger.getRootLogger().addAppender(consoleAppender);
log.info("java.version: " + System.getProperty("java.version"));
+
+ try
+ {
+ InetAddress addr = InetAddress.getByName("[::1]");
+ new ServerSocket(3333, 200, addr);
+ }
+ catch (Exception e)
+ {
+ if ("Protocol family unavailable".equalsIgnoreCase(e.getMessage()) ||
+ "Protocol family not supported".equalsIgnoreCase(e.getMessage()))
+ {
+ ipv6IsAvailable = false;
+ log.info("ipV6 is not available");
+ }
+ }
}
}
@@ -115,6 +132,8 @@
protected void doTest(String host) throws Throwable
{
+ if (!ipv6IsAvailable) return;
+
MBeanServer server = null;
try
{
16 years, 7 months
JBoss Remoting SVN: r4060 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-04-24 03:59:35 -0400 (Thu, 24 Apr 2008)
New Revision: 4060
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6/IPv6TestCase.java
Log:
JBREM-930: Skips tests if IPv6 is unavailable.
Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6/IPv6TestCase.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6/IPv6TestCase.java 2008-04-24 06:56:24 UTC (rev 4059)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/ipv6/IPv6TestCase.java 2008-04-24 07:59:35 UTC (rev 4060)
@@ -64,6 +64,7 @@
private static Logger log = Logger.getLogger(IPv6TestCase.class);
private static boolean firstTime = true;
+ private static boolean ipv6IsAvailable = true;
// remoting server connector
private Connector connector;
@@ -83,6 +84,21 @@
ConsoleAppender consoleAppender = new ConsoleAppender(layout);
Logger.getRootLogger().addAppender(consoleAppender);
log.info("java.version: " + System.getProperty("java.version"));
+
+ try
+ {
+ InetAddress addr = InetAddress.getByName("[::1]");
+ new ServerSocket(3333, 200, addr);
+ }
+ catch (Exception e)
+ {
+ if ("Protocol family unavailable".equalsIgnoreCase(e.getMessage()) ||
+ "Protocol family not supported".equalsIgnoreCase(e.getMessage()))
+ {
+ ipv6IsAvailable = false;
+ log.info("ipV6 is not available");
+ }
+ }
}
}
@@ -95,6 +111,8 @@
public void testRawIPv6() throws Throwable
{
log.info("entering " + getName());
+ if (!ipv6IsAvailable) return;
+
final InetAddress addr = InetAddress.getByName("[::1]");
new Thread()
@@ -136,6 +154,8 @@
public void testRemotingIPv6Loopback() throws Throwable
{
log.info("entering " + getName());
+ if (!ipv6IsAvailable) return;
+
doRemotingTest("[::1]");
log.info(getName() + " PASSES");
}
@@ -144,6 +164,7 @@
public void testRemotingIPv6Any() throws Throwable
{
log.info("entering " + getName());
+ if (!ipv6IsAvailable) return;
doRemotingTest("[::]");
log.info(getName() + " PASSES");
}
@@ -151,6 +172,7 @@
public void testRemotingIPv4Mapped() throws Throwable
{
+ if (!ipv6IsAvailable) return;
doRemotingTest("[::ffff:127.0.0.1]");
}
16 years, 7 months
JBoss Remoting SVN: r4059 - remoting2/branches/2.x/src/main/org/jboss/remoting/transport.
by jboss-remoting-commits@lists.jboss.org
Author: ron.sigal(a)jboss.com
Date: 2008-04-24 02:56:24 -0400 (Thu, 24 Apr 2008)
New Revision: 4059
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/PortUtil.java
Log:
JBREM-865: Logs more informative message if IPv6 is not available.
Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/transport/PortUtil.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/transport/PortUtil.java 2008-04-24 06:38:18 UTC (rev 4058)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/transport/PortUtil.java 2008-04-24 06:56:24 UTC (rev 4059)
@@ -90,7 +90,14 @@
}
catch (IOException e)
{
- log.debug("port " + p + " already in use. Will try another.", e.getCause());
+ if ("Protocol family unavailable".equalsIgnoreCase(e.getMessage()))
+ {
+ log.debug("perhaps IPv6 is not available: " + e.getMessage());
+ }
+ else
+ {
+ log.debug("port " + p + " already in use. Will try another.", e.getCause());
+ }
}
finally
{
16 years, 7 months