james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [3/7] james-project git commit: JAMES-2446 Disable assertions (modest performance benefit)
Date Tue, 03 Jul 2018 08:51:41 GMT
JAMES-2446 Disable assertions (modest performance benefit)


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/dbb6039c
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/dbb6039c
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/dbb6039c

Branch: refs/heads/master
Commit: dbb6039c0f41b181063ccaee22dcd1d0e286c81e
Parents: 5d70b94
Author: Antoine Duprat <aduprat@linagora.com>
Authored: Tue Jun 26 12:01:57 2018 +0200
Committer: benwa <btellier@linagora.com>
Committed: Tue Jul 3 15:50:37 2018 +0700

----------------------------------------------------------------------
 .../org/apache/james/backends/cassandra/DockerCassandraRule.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/dbb6039c/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/DockerCassandraRule.java
----------------------------------------------------------------------
diff --git a/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/DockerCassandraRule.java
b/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/DockerCassandraRule.java
index a612e86..5a8ea95 100644
--- a/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/DockerCassandraRule.java
+++ b/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/DockerCassandraRule.java
@@ -86,6 +86,8 @@ public class DockerCassandraRule implements TestRule {
                         .run("echo auto_bootstrap: false >> " + CASSANDRA_YAML)
                         .run("echo \"-Xms1500M\" >> " + JVM_OPTIONS)
                         .run("echo \"-Xmx1500M\" >> " + JVM_OPTIONS)
+                        // disable assertions (modest performance benefit)
+                        .run("sed -i -e 's/JVM_OPTS=\"$JVM_OPTS -ea\"/JVM_OPTS=\"$JVM_OPTS
-da\"/' " + CASSANDRA_ENV)
                         .build()))
             .withCreateContainerCmdModifier(cmd -> cmd.getHostConfig().withBinds(new Binds(new
Bind(tmpFsName, new Volume("/var/lib/cassandra")))))
             .withCreateContainerCmdModifier(cmd -> cmd.withMemory(2000 * 1024 * 1024L))


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message