Skip to content
Browse files

updated automatic deployment test configuration

- with new tcp connection parameters
- fixed diezel dependency
  • Loading branch information...
1 parent 37200dd commit 5c41a45b18f215f9b261c8e28af82ff37696909c @matthieumorel matthieumorel committed Mar 26, 2012
View
12 build.gradle
@@ -73,7 +73,7 @@ libraries = [
jcip: 'net.jcip:jcip-annotations:1.0',
junit: 'junit:junit:4.10',
zkclient: 'com.github.sgroschupf:zkclient:0.1',
- diezel: 'net.ericaro:diezel-maven-plugin:1.0.0-beta-4-SNAPSHOT'
+ diezel: 'net.ericaro:diezel-maven-plugin:1.0.0-beta-4'
]
subprojects {
@@ -87,17 +87,17 @@ subprojects {
targetCompatibility = 1.6
checkstyleConfigFileName = "$rootDir/config/checkstyle/s4-checkstyle.xml"
-
- // The jmx points to a repo that is no longer available. We exclude these dependencies.
+
+ // The jmx points to a repo that is no longer available. We exclude these dependencies.
configurations {
all*.exclude group: 'com.sun.jmx'
all*.exclude group: 'com.sun.jdmk'
all*.exclude group: 'javax.jms'
all*.exclude group: 'javax.mail'
}
-
+
dependencies {
-
+
/* Google. */
compile( libraries.guava )
compile( libraries.guice )
@@ -115,7 +115,7 @@ subprojects {
/* Misc. */
compile( libraries.jcip )
compile( libraries.zk )
-
+
/* Testing. */
testCompile( libraries.junit )
}
View
6 subprojects/s4-comm/src/test/resources/default.s4.properties
@@ -1,9 +1,13 @@
comm.queue_emmiter_size = 8000
comm.queue_listener_size = 8000
+comm.retries=10
+comm.retry_delay=10
+comm.timeout=1000
+tcp.partition.queue_size=256
cluster.hosts = localhost
cluster.ports = 5077
cluster.lock_dir = {user.dir}/tmp
cluster.name = s4-test-cluster
cluster.zk_address = localhost:2181
cluster.zk_session_timeout = 10000
-cluster.zk_connection_timeout = 10000
+cluster.zk_connection_timeout = 10000
View
3 subprojects/s4-core/src/test/java/org/apache/s4/deploy/TestAutomaticDeployment.java
@@ -20,7 +20,6 @@
import org.apache.s4.comm.tools.TaskSetup;
import org.apache.s4.comm.topology.ZNRecord;
import org.apache.s4.comm.topology.ZNRecordSerializer;
-import org.apache.s4.deploy.DistributedDeploymentManager;
import org.apache.s4.fixtures.CommTestUtils;
import org.apache.s4.fixtures.CoreTestUtils;
import org.apache.zookeeper.CreateMode;
@@ -186,7 +185,7 @@ private void assertMultipleAppsDeployment(String uri1, String uri2) throws Keepe
record2.putSimpleField(DistributedDeploymentManager.S4R_URI, uri2);
zkClient.create("/" + clusterName + "/apps/testApp2", record2, CreateMode.PERSISTENT);
- Assert.assertTrue(signalApp1Initialized.await(10, TimeUnit.SECONDS));
+ Assert.assertTrue(signalApp1Initialized.await(20, TimeUnit.SECONDS));
Assert.assertTrue(signalApp1Started.await(10, TimeUnit.SECONDS));
Assert.assertTrue(signalApp2Initialized.await(10, TimeUnit.SECONDS));
View
5 subprojects/s4-core/src/test/resources/org.apache.s4.deploy.s4.properties
@@ -1,5 +1,9 @@
comm.queue_emmiter_size = 8000
comm.queue_listener_size = 8000
+comm.retries=10
+comm.retry_delay=10
+comm.timeout=1000
+tcp.partition.queue_size=256
cluster.hosts = localhost
cluster.ports = 5077
cluster.name = s4-test-cluster
@@ -9,4 +13,3 @@ cluster.zk_connection_timeout = 10000
comm.module = org.apache.s4.deploy.TestModule
s4.logger_level = TRACE
appsDir=/tmp/deploy-test
-tcp.partition.queue_size=256

0 comments on commit 5c41a45

Please sign in to comment.
Something went wrong with that request. Please try again.