Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
ee9b42a
TTB Initial commit
srgg Dec 9, 2015
f43e250
Added proper handling of: TsPutReq (encoding), tsputresp(encoding), r…
srgg Dec 9, 2015
c28724e
RighTTBCodec is forced to be used by default
srgg Dec 9, 2015
01ef430
Netty Logger has been removed
srgg Dec 10, 2015
f43f0fa
TsGetReq Added TsGetReq and TsGetResp
srgg Dec 10, 2015
48dc9bd
Added ToggleTTBEncodingOperation and smart TTB/PB encoding/decodingю
srgg Jan 12, 2016
b46e1b1
Fix broken tests
srgg Jan 15, 2016
83e509f
TTB codec adjusted to RiakTS 1.1 changes
srgg Jan 15, 2016
65f2a92
Deferred encoding operation support was introduces for TS Store and F…
srgg Jan 20, 2016
970735c
Added proper handling of com.basho.riak.pbcport
srgg Jan 21, 2016
a59d9f3
rework preventive toggle the Native/TTB encoding to be toggled on per…
srgg Jan 22, 2016
914c215
getting rid of creation TsPutReq.Builder and TsGetReq.Builder
srgg Jan 25, 2016
fcc01e0
Fix error propogation in case of Channel fails to switch to use Nativ…
srgg Jan 27, 2016
c4e5e5c
Pull in change from another branch by @lehoff
alexmoore Apr 12, 2016
9281f24
Merge branch 'develop' into perf/ttb_encoding_v2
alexmoore Apr 12, 2016
5c09a18
Remove TTB Switch code, update PB dependency
alexmoore Apr 14, 2016
f743ff3
Add new TTB codec boilerplate
alexmoore Apr 18, 2016
6aa4237
Stubbing out Store operation
alexmoore Apr 18, 2016
d3a2d93
Encoding of tsgetreq to byte[] is complete.
lukebakken Apr 18, 2016
c061b25
Encode query and put TTB requests.
lukebakken Apr 18, 2016
e01e3fe
Stub out other TS operations to use TTB
alexmoore Apr 19, 2016
05df991
Remove TTB methods for TsDelReq - not supported yet.
lukebakken Apr 19, 2016
15834e6
Revert Delete to use PB
alexmoore Apr 19, 2016
51d60cc
Decode TTB Get/Query response
lukebakken Apr 19, 2016
519cea2
stub out test file
alexmoore Apr 20, 2016
e568a4c
Move error decoding into RiakMessage for pbuf and ttb messages.
lukebakken Apr 20, 2016
f34401c
Added tests for RiakMessage error decoding.
lukebakken Apr 20, 2016
572a031
Add test for TTB encoding TsGetReq
lukebakken Apr 20, 2016
b84619d
Add test for TTB encoding TsQueryReq
lukebakken Apr 21, 2016
d55c4ef
Add null cell handling to TTB PUT encoding, fix tuple/list mixup, add…
alexmoore Apr 21, 2016
ae6bbfe
fix example request tuple
alexmoore Apr 21, 2016
30a676f
Add a TsPutReq test
lukebakken Apr 21, 2016
e5e650c
Fix unit tests for TTB codec.
lukebakken Apr 21, 2016
92e31ea
Remove the double-header from TTB data.
lukebakken Apr 21, 2016
fc3dbcb
Add riak_pb submodule
lukebakken Apr 21, 2016
16f50a8
Integrate riak_pb into build process
Apr 21, 2016
ac31017
Fix a few encoding/decoding issues
alexmoore Apr 22, 2016
9563ff0
Update plugin versions in pom.xml
lukebakken Apr 22, 2016
2d975b7
Use HTTPS to be frienlier
lukebakken Apr 22, 2016
2961306
revert awaitility upgrade
Apr 22, 2016
e90065e
Fix codec to parse QueryResponses correctly, add some error handling …
alexmoore Apr 22, 2016
fe88d2b
Fix a ttb row read bug, change a test to match current behavior
alexmoore Apr 23, 2016
e4ef475
Simplify detection of when to read end of list.
lukebakken Apr 25, 2016
7660892
Merge pull request #615 from basho/features/lrb/integrate-riak-pb
alexmoore Apr 25, 2016
f99977e
Merge branch 'develop' into perf/ttb_encoding/v3
alexmoore Apr 25, 2016
8834f07
Add port option + TS testing to makefile
alexmoore Apr 25, 2016
7243f38
Small Makefile change to only set RIAK_PORT if it isn't set in the env.
lukebakken Apr 25, 2016
f497262
Remainder of TODOs for 611
alexmoore Apr 26, 2016
aa0d7a4
Code cleanup
alexmoore Apr 26, 2016
2bf1d8d
Remove unused case branch
alexmoore Apr 26, 2016
2edbd44
No need to use OtpErlangAtom when write_atom() exists.
lukebakken Apr 26, 2016
dd7f951
Add security test option to makefile
alexmoore Apr 28, 2016
75b92f6
Merge branch 'perf/ttb_encoding/v3' of https://github.com/basho/riak-…
alexmoore Apr 28, 2016
5b092d2
Remove PB objects entirely from TTB TS put path
alexmoore Apr 29, 2016
9ccf8e7
Some small optimizations
alexmoore May 3, 2016
1f353b4
Add test for PB error handling while using TTB operation
alexmoore May 4, 2016
a0beb8e
A few PR cleanup items
alexmoore May 4, 2016
3d7cd4d
The final final
alexmoore May 4, 2016
c748fbd
Merge pull request #617 from basho/perf/ttb_encoding/v4
alexmoore May 4, 2016
450a95e
Dont do error checking while writing TTB messages
alexmoore May 5, 2016
8918c5b
Dont convert to PB and back when creating a row
alexmoore May 5, 2016
09ee18f
Adding single atom response handling
alexmoore May 6, 2016
a9a71c9
Merge pull request #611 from basho/perf/ttb_encoding/v3
alexmoore May 6, 2016
541d4f9
Adding release notes for 2.0.6
alexmoore May 6, 2016
9f7aeca
[maven-release-plugin] prepare release riak-client-2.0.6
alexmoore May 6, 2016
c380d0c
[maven-release-plugin] prepare for next development iteration
alexmoore May 6, 2016
5bd8354
Merge branch 'develop' into merge-dpclient
alexmoore May 9, 2016
bd6cf99
Fix merge issues
alexmoore May 9, 2016
2396fcf
Add test for coverage context in TTBCodec
alexmoore May 18, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "tools"]
path = tools
url = https://github.com/basho/riak-client-tools/
[submodule "riak_pb"]
path = riak_pb
url = https://github.com/basho/riak_pb.git
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY: compile test unit-test integration-test integration-test-timeseries protogen

RIAK_PORT ?= 8087

compile:
mvn clean compile

test: unit-test integration-test

unit-test:
mvn test

integration-test:
mvn -Pitest,default -Dcom.basho.riak.2i=true -Dcom.basho.riak.yokozuna=true -Dcom.basho.riak.buckettype=true -Dcom.basho.riak.crdt=true -Dcom.basho.riak.lifecycle=true -Dcom.basho.riak.pbcport=$(RIAK_PORT) verify

integration-test-timeseries:
mvn -Pitest,default -Dcom.basho.riak.buckettype=true -Dcom.basho.riak.crdt=true -Dcom.basho.riak.lifecycle=true -Dcom.basho.riak.timeseries=true -Dcom.basho.riak.pbcport=$(RIAK_PORT) verify

integration-test-security:
mvn -Pitest,default -Dcom.basho.riak.security=true -Dcom.basho.riak.security.clientcert=true -Dcom.basho.riak.pbcport=$(RIAK_PORT) test-compile failsafe:integration-test

protogen:
mvn -Pprotobuf-generate generate-sources
7 changes: 7 additions & 0 deletions RELNOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Release Notes
=============

### 2.0.6
Following issues / PRs addressed:
* [Removed riak_pb external dependency](https://github.com/basho/riak-java-client/pull/615)
* [Fixed connection handling deadlock issue](https://github.com/basho/riak-java-client/pull/598)
* [Added TimeSeries Create Table command](https://github.com/basho/riak-java-client/pull/602/)
* [Added Erlang Term Serialization support for some Time Series operations](https://github.com/basho/riak-java-client/pull/611/)

### 2.0.5
Following issues / PRs addressed:
* [Fix DNS cache issue when using the client with ELB](https://github.com/basho/riak-java-client/pull/573)
Expand Down
160 changes: 113 additions & 47 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
<groupId>com.basho.riak</groupId>
<artifactId>riak-client</artifactId>
<packaging>jar</packaging>
<version>2.0.6-SNAPSHOT</version>
<version>2.0.7-SNAPSHOT</version>
<name>Riak Client for Java</name>
<description>Java client for Riak 2.0</description>
<url>https://github.com/basho/riak-java-client</url>
<prerequisites>
<maven>3.0</maven>
</prerequisites>

<licenses>
<license>
Expand Down Expand Up @@ -42,6 +45,12 @@
<organization>Basho Technologies, Inc</organization>
<organizationUrl>http://www.basho.com</organizationUrl>
</developer>
<developer>
<name>Luke Bakken</name>
<email>lbakken@basho.com</email>
<organization>Basho Technologies, Inc</organization>
<organizationUrl>http://www.basho.com</organizationUrl>
</developer>
</developers>

<scm>
Expand Down Expand Up @@ -103,7 +112,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.16</version>
<version>2.19.1</version>
<executions>
<execution>
<goals>
Expand All @@ -129,7 +138,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<version>2.6</version>
<configuration>
<descriptors>
<descriptor>src/main/assembly/jar-with-dependencies.xml</descriptor>
Expand Down Expand Up @@ -191,47 +200,92 @@
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
<excludePackageNames>com.basho.riak.protobuf.util</excludePackageNames>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>protobuf-generate</id>
<activation>
<property>
<name>protobuf-generate</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.webguys</groupId>
<artifactId>string-template-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<templates>
<template>
<directory>${basedir}/src/main/resources</directory>
<name>RiakMessageCodes</name>
<target>${basedir}/src/main/java/com/basho/riak/protobuf/RiakMessageCodes.java</target>
<controller>
<className>com.basho.riak.protobuf.util.TemplateController</className>
<method>getProperties</method>
</controller>
</template>
</templates>
</configuration>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>render</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.twdata.maven</groupId>
<artifactId>mojo-executor</artifactId>
<version>2.2.0</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>com.github.igor-petruk.protobuf</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.5</version>
<configuration>
<cleanOutputFolder>false</cleanOutputFolder>
<inputDirectories>
<directory>${basedir}/riak_pb/src</directory>
</inputDirectories>
<outputDirectory>${project.build.sourceDirectory}</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>versions-maven</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.2</version>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>false</shadedArtifactAttached>
<createDependencyReducedPom>true</createDependencyReducedPom>
<artifactSet>
<includes>
<include>com.google.protobuf:protobuf-java</include>
<include>com.basho.riak.protobuf:riak-pb</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>com.google.protobuf</pattern>
<shadedPattern>shaded.com.google.protobuf</shadedPattern>
</relocation>
<relocation>
<pattern>com.basho.riak.protobuf</pattern>
<shadedPattern>shaded.com.basho.riak.protobuf</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.2</version>
Expand All @@ -258,18 +312,17 @@
</goals>
</execution>
</executions>

</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<version>3.5.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<compilerArgs>
<arg>-Werror</arg>
<arg>-Xlint:all</arg>
<arg>-Werror</arg>
<arg>-Xlint:all</arg>
</compilerArgs>
</configuration>
</plugin>
Expand Down Expand Up @@ -310,15 +363,18 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<version>2.10.3</version>
<configuration>
<excludePackageNames>com.basho.riak.protobuf.util</excludePackageNames>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.2</version>
<version>1.7.21</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
Expand Down Expand Up @@ -353,12 +409,12 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.2.2</version>
<version>2.7.3</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-joda</artifactId>
<version>2.2.2</version>
<version>2.7.3</version>
<type>jar</type>
</dependency>
<dependency>
Expand All @@ -367,9 +423,19 @@
<version>4.0.33.Final</version>
</dependency>
<dependency>
<groupId>com.basho.riak.protobuf</groupId>
<artifactId>riak-pb</artifactId>
<version>2.1.1.1-SNAPSHOT</version>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>2.6.1</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr-complete</artifactId>
<version>3.5.2</version>
</dependency>
<dependency>
<groupId>org.erlang.otp</groupId>
<artifactId>jinterface</artifactId>
<version>1.5.6</version>
</dependency>
</dependencies>
</project>
1 change: 1 addition & 0 deletions riak_pb
Submodule riak_pb added at a18269
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private ClassUtil() {}
* @throws IllegalArgumentException if cannot set accessibility
*/
public static <T extends Member> T checkAndFixAccess(T member) {
com.fasterxml.jackson.databind.util.ClassUtil.checkAndFixAccess(member);
com.fasterxml.jackson.databind.util.ClassUtil.checkAndFixAccess(member, false);
return member;
}

Expand Down
Loading