kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 87e7552e1ac5fedae93d9a06f3cd320ccfd18f8b756f6dc546fa6aa85d6c0e13 |
|---|---|
| Author | Olivier Michallat <olim7t@users.noreply.github.com> · 2016-07-14 15:52 -07:00 |
| Committer | GitHub <noreply@github.com> · 2016-07-14 15:52 -07:00 |
| Parents | bbd5e272a157, 3421e9a4e25b |
7 files changed
modified changelog/README.md +2 −1
| @@ -4,7 +4,8 @@ | ||
| 4 | 4 | |
| 5 | 5 | - [new feature] JAVA-1153: Add PER PARTITION LIMIT to Select QueryBuilder. |
| 6 | 6 | - [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. | |
| 8 | 9 | |
| 9 | 10 | Merged from 3.0.x branch: |
| 10 | 11 |
modified driver-tests/osgi/src/test/java/com/datastax/driver/osgi/BundleOptions.java +26 −0
| @@ -63,6 +63,32 @@ | ||
| 63 | 63 | }; |
| 64 | 64 | } |
| 65 | 65 | |
| 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 | + | |
| 66 | 92 | public static CompositeOption nettyBundles() { |
| 67 | 93 | final String nettyVersion = "4.0.33.Final"; |
| 68 | 94 | 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 @@ | ||
| 68 | 68 | <dependency> |
| 69 | 69 | <groupId>org.xerial.snappy</groupId> |
| 70 | 70 | <artifactId>snappy-java</artifactId> |
| 71 | - <version>1.0.5</version> | |
| 71 | + <version>1.1.2.6</version> | |
| 72 | 72 | </dependency> |
| 73 | 73 | ``` |
| 74 | 74 |
modified manual/speculative_execution/README.md +1 −1
| @@ -117,7 +117,7 @@ | ||
| 117 | 117 | <dependency> |
| 118 | 118 | <groupId>org.hdrhistogram</groupId> |
| 119 | 119 | <artifactId>HdrHistogram</artifactId> |
| 120 | - <version>2.1.4</version> | |
| 120 | + <version>2.1.9</version> | |
| 121 | 121 | </dependency> |
| 122 | 122 | ``` |
| 123 | 123 |
modified pom.xml +2 −2
| @@ -54,9 +54,9 @@ | ||
| 54 | 54 | <guava.version>16.0.1</guava.version> |
| 55 | 55 | <netty.version>4.0.37.Final</netty.version> |
| 56 | 56 | <metrics.version>3.1.2</metrics.version> |
| 57 | - <snappy.version>1.0.5</snappy.version> | |
| 57 | + <snappy.version>1.1.2.6</snappy.version> | |
| 58 | 58 | <lz4.version>1.3.0</lz4.version> |
| 59 | - <hdr.version>2.1.4</hdr.version> | |
| 59 | + <hdr.version>2.1.9</hdr.version> | |
| 60 | 60 | <!-- driver-extras module --> |
| 61 | 61 | <jackson.version>2.6.3</jackson.version> |
| 62 | 62 | <joda.version>2.9.1</joda.version> |