Elffuss BraidHub

kikocis/java-driver public

Merge pull request #701 from datastax/java1233

JAVA-1233: Upgrade dependencies to latest versions
Changeset87e7552e1ac5fedae93d9a06f3cd320ccfd18f8b756f6dc546fa6aa85d6c0e13
AuthorOlivier Michallat <olim7t@users.noreply.github.com> · 2016-07-14 15:52 -07:00
CommitterGitHub <noreply@github.com> · 2016-07-14 15:52 -07:00
Parentsbbd5e272a157, 3421e9a4e25b

Browse the files at this changeset

7 files changed

modified changelog/README.md +2 −1
@@ -4,7 +4,8 @@
44
55 - [new feature] JAVA-1153: Add PER PARTITION LIMIT to Select QueryBuilder.
66 - [improvement] JAVA-743: Add JSON support to QueryBuilder.
7-
7+- [improvement] JAVA-1233: Update HdrHistogram to 2.1.9.
8+- [improvement] JAVA-1233: Update Snappy to 1.1.2.6.
89
910 Merged from 3.0.x branch:
1011
modified driver-tests/osgi/src/test/java/com/datastax/driver/osgi/BundleOptions.java +26 −0
@@ -63,6 +63,32 @@
6363 };
6464 }
6565
66+ public static CompositeOption snappyBundle() {
67+ return new CompositeOption() {
68+
69+ @Override
70+ public Option[] getOptions() {
71+ return options(
72+ systemProperty("cassandra.compression").value(ProtocolOptions.Compression.SNAPPY.name()),
73+ mavenBundle("org.xerial.snappy", "snappy-java", "1.1.2.6")
74+ );
75+ }
76+ };
77+ }
78+
79+ public static CompositeOption hdrHistogramBundle() {
80+ return new CompositeOption() {
81+
82+ @Override
83+ public Option[] getOptions() {
84+ return options(
85+ systemProperty("cassandra.usePercentileSpeculativeExecutionPolicy").value("true"),
86+ mavenBundle("org.hdrhistogram", "HdrHistogram", "2.1.9")
87+ );
88+ }
89+ };
90+ }
91+
6692 public static CompositeOption nettyBundles() {
6793 final String nettyVersion = "4.0.33.Final";
6894 return new CompositeOption() {
added driver-tests/osgi/src/test/java/com/datastax/driver/osgi/MailboxServiceHdrHistogramIT.java +58 −0
@@ -0,0 +1,58 @@
1+/*
2+ * Copyright (C) 2012-2015 DataStax Inc.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+package com.datastax.driver.osgi;
17+
18+import com.datastax.driver.osgi.api.MailboxException;
19+import org.ops4j.pax.exam.Configuration;
20+import org.ops4j.pax.exam.Option;
21+import org.ops4j.pax.exam.testng.listener.PaxExam;
22+import org.testng.annotations.Listeners;
23+import org.testng.annotations.Test;
24+
25+import static com.datastax.driver.osgi.BundleOptions.*;
26+import static org.ops4j.pax.exam.CoreOptions.options;
27+
28+@Listeners({CCMBridgeListener.class, PaxExam.class})
29+public class MailboxServiceHdrHistogramIT extends MailboxServiceTests {
30+
31+ @Configuration
32+ public Option[] hdrHistogramConfig() {
33+ return options(
34+ defaultOptions(),
35+ hdrHistogramBundle(),
36+ nettyBundles(),
37+ guavaBundle(),
38+ extrasBundle(),
39+ mappingBundle(),
40+ driverBundle(),
41+ mailboxBundle()
42+ );
43+ }
44+
45+ /**
46+ * Exercises a 'mailbox' service provided by an OSGi bundle that depends on the driver with
47+ * LZ4 compression activated.
48+ *
49+ * @test_category packaging
50+ * @expected_result Can create, retrieve and delete data using the mailbox service.
51+ * @jira_ticket JAVA-1200
52+ * @since 3.1.0
53+ */
54+ @Test(groups = "short")
55+ public void test_hdr() throws MailboxException {
56+ checkService();
57+ }
58+}
added driver-tests/osgi/src/test/java/com/datastax/driver/osgi/MailboxServiceSnappyIT.java +58 −0
@@ -0,0 +1,58 @@
1+/*
2+ * Copyright (C) 2012-2015 DataStax Inc.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+package com.datastax.driver.osgi;
17+
18+import com.datastax.driver.osgi.api.MailboxException;
19+import org.ops4j.pax.exam.Configuration;
20+import org.ops4j.pax.exam.Option;
21+import org.ops4j.pax.exam.testng.listener.PaxExam;
22+import org.testng.annotations.Listeners;
23+import org.testng.annotations.Test;
24+
25+import static com.datastax.driver.osgi.BundleOptions.*;
26+import static org.ops4j.pax.exam.CoreOptions.options;
27+
28+@Listeners({CCMBridgeListener.class, PaxExam.class})
29+public class MailboxServiceSnappyIT extends MailboxServiceTests {
30+
31+ @Configuration
32+ public Option[] snappyConfig() {
33+ return options(
34+ defaultOptions(),
35+ snappyBundle(),
36+ nettyBundles(),
37+ guavaBundle(),
38+ extrasBundle(),
39+ mappingBundle(),
40+ driverBundle(),
41+ mailboxBundle()
42+ );
43+ }
44+
45+ /**
46+ * Exercises a 'mailbox' service provided by an OSGi bundle that depends on the driver with
47+ * LZ4 compression activated.
48+ *
49+ * @test_category packaging
50+ * @expected_result Can create, retrieve and delete data using the mailbox service.
51+ * @jira_ticket JAVA-1200
52+ * @since 3.1.0
53+ */
54+ @Test(groups = "short")
55+ public void test_snappy() throws MailboxException {
56+ checkService();
57+ }
58+}
modified manual/compression/README.md +1 −1
@@ -68,7 +68,7 @@
6868 <dependency>
6969 <groupId>org.xerial.snappy</groupId>
7070 <artifactId>snappy-java</artifactId>
71- <version>1.0.5</version>
71+ <version>1.1.2.6</version>
7272 </dependency>
7373 ```
7474
modified manual/speculative_execution/README.md +1 −1
@@ -117,7 +117,7 @@
117117 <dependency>
118118 <groupId>org.hdrhistogram</groupId>
119119 <artifactId>HdrHistogram</artifactId>
120- <version>2.1.4</version>
120+ <version>2.1.9</version>
121121 </dependency>
122122 ```
123123
modified pom.xml +2 −2
@@ -54,9 +54,9 @@
5454 <guava.version>16.0.1</guava.version>
5555 <netty.version>4.0.37.Final</netty.version>
5656 <metrics.version>3.1.2</metrics.version>
57- <snappy.version>1.0.5</snappy.version>
57+ <snappy.version>1.1.2.6</snappy.version>
5858 <lz4.version>1.3.0</lz4.version>
59- <hdr.version>2.1.4</hdr.version>
59+ <hdr.version>2.1.9</hdr.version>
6060 <!-- driver-extras module -->
6161 <jackson.version>2.6.3</jackson.version>
6262 <joda.version>2.9.1</joda.version>