Elffuss BraidHub

kikocis/java-driver public

Merge branch '2.1' into 3.0

Conflicts:
	driver-core/src/test/java/com/datastax/driver/core/policies/DowngradingConsistencyRetryPolicyIntegrationTest.java
Changeset7f6f4eda892be2aff269ee2ac0a53744781145b31ef5a294215ef21584b3d9c1
AuthorAlexandre Dutra <alexandre.dutra@datastax.com> · 2016-01-28 13:42 +01:00
CommitterAlexandre Dutra <alexandre.dutra@datastax.com> · 2016-01-28 13:42 +01:00
Parents75e84345ce38, 37c05c45453b

Browse the files at this changeset

2 files changed

modified driver-core/src/test/java/com/datastax/driver/core/CCMBridge.java +1 −0
@@ -405,6 +405,7 @@
405405 return;
406406 if (logger.isDebugEnabled())
407407 logger.debug("Stopping: {} - free memory: {} MB", this, TestUtils.getFreeMemoryMB());
408+ execute(CCM_COMMAND + " stop");
408409 if (logger.isDebugEnabled())
409410 logger.debug("Stopped: {} - free memory: {} MB", this, TestUtils.getFreeMemoryMB());
410411 closed = true;
modified driver-core/src/test/java/com/datastax/driver/core/CCMTestsSupport.java +12 −1
@@ -854,9 +854,20 @@
854854 * Tests fail randomly with InvalidQueryException: Keyspace 'xxx' does not exist;
855855 * this method tries at most 3 times to issue a successful USE statement.
856856 *
857- * @param ks The keyspace to use
857+ * @param ks The keyspace to USE
858858 */
859859 public void useKeyspace(String ks) {
860+ useKeyspace(session(), ks);
861+ }
862+
863+ /**
864+ * Tests fail randomly with InvalidQueryException: Keyspace 'xxx' does not exist;
865+ * this method tries at most 3 times to issue a successful USE statement.
866+ *
867+ * @param session The session to use
868+ * @param ks The keyspace to USE
869+ */
870+ public void useKeyspace(Session session, String ks) {
860871 final int maxTries = 3;
861872 for (int i = 1; i <= maxTries; i++) {
862873 try {