Repository: AlexPikalov/cdrs (language: rust)

Issue:
Travis CI: fails on running e2e tests
Travis CI fails on running e2e tests despite locally tests work fine.
Simple re-run a job which was "green" makes it "red".

Log investigation shows that it may be Cassandra run by Travis issue:

```
INFO  10:16:41 Initializing system.schema_aggregates
INFO  10:16:41 Not submitting build tasks for views in keyspace system as storage service is not initialized
Exception (java.lang.AbstractMethodError) encountered during startup: org.apache.cassandra.utils.JMXServerUtils$Exporter.exportObject(Ljava/rmi/Remote;ILjava/rmi/server/RMIClientSocketFactory;Ljava/rmi/server/RMIServerSocketFactory;Lsun/misc/ObjectInputFilter;)Ljava/rmi/Remote;
java.lang.AbstractMethodError: org.apache.cassandra.utils.JMXServerUtils$Exporter.exportObject(Ljava/rmi/Remote;ILjava/rmi/server/RMIClientSocketFactory;Ljava/rmi/server/RMIServerSocketFactory;Lsun/misc/ObjectInputFilter;)Ljava/rmi/Remote;
	at javax.management.remote.rmi.RMIJRMPServerImpl.export(RMIJRMPServerImpl.java:150)
	at javax.management.remote.rmi.RMIJRMPServerImpl.export(RMIJRMPServerImpl.java:135)
	at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:405)
	at org.apache.cassandra.utils.JMXServerUtils.createJMXServer(JMXServerUtils.java:106)
	at org.apache.cassandra.service.CassandraDaemon.maybeInitJmx(CassandraDaemon.java:145)
	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:219)
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:601)
	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:730)
```


Discussion / hints:
Related to http://mail-archives.apache.org/mod_mbox/cassandra-user/201801.mbox/%3CCABinuxcubqObxT4DWOA9ga=xT6jFy+LWod73LPM5=Sup6o+Bkw@mail.gmail.com%3E

Affects: #196, #199 
Blocked by https://issues.apache.org/jira/browse/CASSANDRA-14173
E2E tests are disabled on travis CI as of now
UPD: Cassandra 3.11.2 should have the fix. According to [comments](https://issues.apache.org/jira/browse/CASSANDRA-14173?focusedCommentId=16349998&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16349998) the patch will be released soon. After that we'll be able to enable e2e tests.
Seems Cassandra 3.11.2 (which is compatible with latest JAVA) was released so I hope to return back e2e to our CI very soon

Fix patch:
diff --git a/.travis.yml b/.travis.yml
index bcf254c..8d5af6a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,8 +14,8 @@ before_install:
  - export JAVA_HOME=/usr/lib/jvm/java-8-oracle
  - java -version
  - sudo rm -rf /var/lib/cassandra/*
- - if [ ! -d "apache-cassandra-3.9" ]; then wget https://archive.apache.org/dist/cassandra/3.9/apache-cassandra-3.9-bin.tar.gz && tar -xvzf apache-cassandra-3.9-bin.tar.gz; fi
- - sudo sh ./apache-cassandra-3.9/bin/cassandra -R
+ - if [ ! -d "apache-cassandra-3.11.2" ]; then wget https://archive.apache.org/dist/cassandra/3.11.2/apache-cassandra-3.11.2-bin.tar.gz && tar -xvzf apache-cassandra-3.11.2-bin.tar.gz; fi
+ - sudo sh ./apache-cassandra-3.11.2/bin/cassandra -R
  - sleep 20
 
 
@@ -26,7 +26,7 @@ install:
 script:
   # - cargo fmt -- --write-mode=diff
   - cargo build --verbose
-  - cargo test --verbose
+  - cargo test --verbose -- --ignored
 
 addons:
   apt:


Test patch: