Граф коммитов

50 Коммитов

Автор SHA1 Сообщение Дата
Ze'ev Klapow 7b51e94763 Merge branch 'master' into zklapow-checkstyle
Signed-off-by: Ze'ev Klapow <zklapow@hubspot.com>
2019-02-12 10:23:25 -05:00
Ze'ev Klapow b5973f5723 fix checkstyle hook
Signed-off-by: Ze'ev Klapow <zklapow@hubspot.com>
2019-02-08 12:42:04 -05:00
Ze'ev Klapow 4a36888bf5 java: checkstyle for client module
Signed-off-by: Ze'ev Klapow <zklapow@hubspot.com>
2019-02-07 10:31:27 -05:00
Leo Xuzhang Lin 421e45abdc Use recommended version combination
Signed-off-by: Leo Xuzhang Lin <llin@hubspot.com>
2018-12-21 11:37:59 -05:00
Leo Xuzhang Lin 6d20c51fe0 Remove trailing whitespace
Signed-off-by: Leo Xuzhang Lin <llin@hubspot.com>
2018-12-21 11:33:10 -05:00
Michael Pawliszyn 8d93fe96db java: Bump SNAPSHOT version to 3.1.0-SNAPSHOT after Vitess release 3.0.
Signed-off-by: Michael Pawliszyn <mikepaw@squareup.com>
2018-12-13 10:51:23 -05:00
Michael Pawliszyn e5081301e8 Parents the parent pom of the standard sonatype oss pom for better defaults.
Signed-off-by: Michael Pawliszyn <mikepaw@squareup.com>
2018-12-12 11:33:48 -05:00
DK 4db4a28a93 Update all the protocol buffers with the new compiler
Signed-off-by: DK <dk@planetscale.com>
2018-12-03 15:04:01 -08:00
DK 5084a4c3c0 Updating configurations and dependency versions
This commit updates all fixed dependencies to their latest version and
mades changes to the default configs to.

1. Increase the defaults for a few key values
2. Move some settings to new files to support MariaDB 10.3
3. Add a sample production configuration to allow easy deployment

Signed-off-by: DK <dk@planetscale.com>
2018-12-03 15:04:01 -08:00
Yuichi Sasaki 85c504810c The project already depends on Guava 26.0-jre, which reuqires Java 8. Without this change, the project doesn't even compile in IntelliJ.
Signed-off-by: Yuichi Sasaki <ysasaki@astro-inc.com>
2018-11-29 15:49:57 -08:00
DK 6aa7a0da34 Adding necessary options for hadoop tests
Signed-off-by: DK <dk@planetscale.com>
2018-11-15 22:50:58 -08:00
Leo Xuzhang Lin 6dc994b1d0 Use protobuf 3.5.1-1 for protoc version
Signed-off-by: Leo Xuzhang Lin <llin@hubspot.com>
2018-11-07 10:36:46 -05:00
DK 0f25ad165b Forcing the docker unit tests builds to run with the user vitess
The unit tests expect the user to be vitess, however that has a
negative impact on our ability to build the software inside the
containers. This specifically requires the user to be vitess for
testing

Signed-off-by: DK <dk@planetscale.com>
2018-10-26 20:42:51 -07:00
Jesse Wilson d7852379d4 Upgrade Guava, Protobuf, gRPC, Netty, and others
grpc from 1.11 to 1.15
protobuf from 3.0.0 to 3.5.1
jsr305 from 3.0.0 to 3.0.2
gson from 2.8.0 to 2.8.5
guava from 20.0 to 26.0-jre
commons-io from 2.5 to 2.6
netty from 4.1.22 to 4.1.27
joda-time from 2.5 to 2.10
commons-collections4 from 4.1 to 4.2

Signed-off-by: Jesse Wilson <jwilson@squareup.com>
2018-09-25 16:29:18 -04:00
Harshit Gangal 3baad5ab94 java: Bump SNAPSHOT version to 3.0.0 after Vitess release 2.2.0.
Signed-off-by: Harshit Gangal <harshit.gangal@gmail.com>
2018-06-01 02:02:01 +05:30
Harshit Gangal 64d8ef8b4c JDBC version change for 2.2 release
Signed-off-by: Harshit Gangal <harshit.gangal@gmail.com>
2018-05-19 02:18:42 +05:30
Alex Charis 325e9ca08a jdbc: bump dep versions in order to pull in grpc 1.5.0 -> 1.11.0
we therefore now pull in:
 - guava 19.0 -> 20.0
 - netty-handler 4.1.12.Final -> 4.1.22.Final
 - netty-tcnative-boringssl-static 2.0.3.Final -> 2.0.7.Final

Signed-off-by: Alex Charis <acharis@hubspot.com>
2018-05-03 14:50:30 -04:00
Alain Jobart 0ef9fdc2c6 Mass-replace youtube/vitess -> vitessio/vitess.
Signed-off-by: Alain Jobart <alainjobart@google.com>
2018-03-05 07:37:17 -08:00
Bryan Beaudreault 3ea9eee30d bump to grpc 1.5.0 2017-08-22 12:51:07 -04:00
Harshit Gangal 2fb6d86100 low level client side changes 2017-07-23 16:40:47 +05:30
Harshit Gangal 3ae71441f0 Initial Java Changes for Vitess new API 2017-07-17 00:14:07 +05:30
Michael Berlin 676d24e8bf java: Bump SNAPSHOT version to 2.1.2-SNAPSHOT after Vitess release v2.1.1. 2017-05-22 07:03:32 -07:00
Bryan Beaudreault e4123d16fc JDBC Resilience
Use the built-in gRPC name resolvers instead of pre-resolving a InetSocketAddress. This allows gRPC to re-resolve in the face of failures and peridocially in general.
Add a configurable RetryingInterceptor. For now this just retries UNAVAILABLE errors, which are considered transient by the spec. Allow for no-op mode and exponential backoff, with config params
2017-05-08 13:07:37 -07:00
Sugu Sougoumarane 7af23e1dde license: BSD->Apache v2.0
Please refer to #2694 and #2670 for motivation and reasoning for
this change.

I've tried to follow best practice in inserting the copyright
headers. In other open source projects, not all files carry
the notice. For example documentation doesn't. I've followed
similar ground rules.

I did not change the php because there is a separate LICENSE
file there by Pixel Federation. We'll first need to notify
them our intent before changing anything there.

As for the presubmit check, it's going to be non-trivial
because of the number of exceptions, like file types,
directories and generated code. So, it will have to be
a separate project.
2017-05-06 00:38:56 -07:00
Michael Berlin de962aa219 java: Bump SNAPSHOT version to 2.1.1-SNAPSHOT after Vitess release v2.1.0. 2017-04-24 23:11:34 -07:00
Michael Berlin 99850d0787 Merge pull request #2764 from michael-berlin/java_pom_release
java: Add configuration for releasing to the OSS Sonatype repository.
2017-04-18 11:22:30 -07:00
Michael Berlin 7293028afb java: pom.xml: Add "release" profile for deploying and releasing artifacts to the OSS Sonatype repository.
From there, packages will be automatically synced to Maven Central.
2017-04-14 17:01:31 -07:00
Michael Berlin a9e3c5eca8 java: Cleanup parent pom.xml and add missing sections.
The missing sections are required by the OSS Sonatype repository. See: http://central.sonatype.org/pages/requirements.html

Without, we would fail their checks and could not publish to Maven Central.
2017-04-14 17:01:26 -07:00
Michael Berlin 7fec811c16 java: Bump SNAPSHOT version to 2.1.0.
It seems to be a common practice that the SNAPSHOT version in the master
branch points to the next release version.

I updated the versions by running this command:

$ mvn versions:set -DnewVersion=2.1.0-SNAPSHOT
2017-04-12 16:13:30 -07:00
Michael Berlin 4bd4a7a637 java: Cleaned up Maven configurations.
- Added "dependencyManagement" and moved all deps with their version there. Module POMs now reference dependencies *without* specifying the version.
- Reduced scope of test dependencies.
- Dependencies are now sorted alphabetically. Test dependencies come after regular deps.
- Groups of dependencies (e.g. io.vitess.* is a group) are separated by newlines now.
- Created java/README.md which formulates these changes as guidelines for future pull requests.

- Configured "maven-dependency-plugin" which will be run as part of "make java_test" (more precisely "mvn verify") and fail if dependencies are not correctly specified.

- Removed all "pluginRepositories" sections because they don't seem to be necessary.

- Unified headers of the different files.

- Reformatted all files using the Eclipse XML Editor.
2017-04-03 10:02:05 -07:00
Michael Berlin 9d50acf498 Merge pull request #2735 from michael-berlin/jdbc_artifactId
java/jdbc: Change the artifactId to "jdbc".
2017-03-31 22:38:37 -07:00
Michael Berlin 012bd8d6b0 java: Update the project description and URL.
Also remove the list of developers because it is outdated and at this point it would be impractical to list them all.
2017-03-31 18:54:59 -07:00
Michael Berlin 38c6cc81cd java/jdbc: Change the artifactId from "vitess-connector-java" to "vitess-jdbc".
The new name has the advantage that it's shorter.

I've renamed the other artifactId as well such that they all have the prefix "vitess-". Nonetheless, I kept the sub directories without the prefix i.e. "client" instead of "vitess-client".
2017-03-31 18:34:07 -07:00
Michael Berlin 179f1f6e38 java: Move "client" and "grpc-client" projects under io.vitess.* package hierarchy. 2017-03-30 20:07:35 -07:00
Steve Perkins b60da2fa06 Refactors JDBC driver to parse TLS options in VitessConnection class
Fixes broken unit tests

Bumps version of Java client artifacts from 1.0-SNAPSHOT to 1.1.0-SNAPSHOT

Adds null check

Removes redundant fields

Removes duplicate method

Removes redundant unit tests

Fixes broken unit tests

Restores missing test
2017-03-03 15:24:55 -05:00
Steve Perkins 22d5d380ca Adds support to VitessJDBCUrl for parsing optional parameter to enable SSL (#2349)
Adds remaining SSL-related optional parameters to JDBC URL strings

Moves JDBC driver layer closer to passing TLS credentials to the gRPC client layer

Hands off TLS from the Java/JDBC layer to the gRPC client layer

Code review updates

First cut at unit testing of SSL connection from gRPC layer to VTGate

Not setting keyManager on gRPC client when client authentication is unused

Adds TLS to client side of Grpc unit test

Adds netty-tcnative to gRPC client classpath, and couple of bugfixes

Fixes bugs... first successful test of SSL connection from client to vtgateclienttest mock.

Adds unit test coverage for SSL connection with client authentication enabled.

Updates 'grpc-all' and 'netty-tcnative' dependencies to latest versions

Improves null-check and handling

Adds optional argument to 'examples/local' scripts, to allow end-to-end testing of TLS connection to VTGate

Builds optional 'fat JAR' of JDBC driver, for use in standalone situation such as DBeaver, SQuirreL, etc.

Adds JavaDocs, and misc cleanup

Temporarily ignores TLS unit tests, to diagnose issue with Travis CI

Redirects IO from external OpenSSL processes to Travis CI console log

Improves logging

Temporarily disables SSL in TLS unit test

Temporarily disables SSL in TLS unit test

Restores disabled unit tests

Testing Travis CI issues

Travis testing

Adds explicit delays to test race condition theory

Travis testing

Testing Travis

Adds more logging

Adds more logging

Adds more logging

Adds more logging

Adds more logging

Adds more logging

Restores state prior to Travis CI testing

Adds support to VitessJDBCUrl for parsing optional parameter to enable SSL

Adds remaining SSL-related optional parameters to JDBC URL strings

Moves JDBC driver layer closer to passing TLS credentials to the gRPC client layer

Hands off TLS from the Java/JDBC layer to the gRPC client layer

Code review updates

First cut at unit testing of SSL connection from gRPC layer to VTGate

Not setting keyManager on gRPC client when client authentication is unused

Adds TLS to client side of Grpc unit test

Adds netty-tcnative to gRPC client classpath, and couple of bugfixes

Fixes bugs... first successful test of SSL connection from client to vtgateclienttest mock.

Adds unit test coverage for SSL connection with client authentication enabled.

Updates 'grpc-all' and 'netty-tcnative' dependencies to latest versions

Improves null-check and handling

Adds optional argument to 'examples/local' scripts, to allow end-to-end testing of TLS connection to VTGate

Builds optional 'fat JAR' of JDBC driver, for use in standalone situation such as DBeaver, SQuirreL, etc.

Adds JavaDocs, and misc cleanup

Temporarily ignores TLS unit tests, to diagnose issue with Travis CI

Redirects IO from external OpenSSL processes to Travis CI console log

Improves logging

Temporarily disables SSL in TLS unit test

Temporarily disables SSL in TLS unit test

Restores disabled unit tests

Testing Travis CI issues

Travis testing

Adds explicit delays to test race condition theory

Travis testing

Testing Travis

Adds more logging

Adds more logging

Adds more logging

Adds more logging

Adds more logging

Adds more logging

Restores state prior to Travis CI testing

Adds support to VitessJDBCUrl for parsing optional parameter to enable SSL

Adds remaining SSL-related optional parameters to JDBC URL strings

Moves JDBC driver layer closer to passing TLS credentials to the gRPC client layer

Hands off TLS from the Java/JDBC layer to the gRPC client layer

Code review updates

First cut at unit testing of SSL connection from gRPC layer to VTGate

Not setting keyManager on gRPC client when client authentication is unused

Adds TLS to client side of Grpc unit test

Adds netty-tcnative to gRPC client classpath, and couple of bugfixes

Fixes bugs... first successful test of SSL connection from client to vtgateclienttest mock.

Adds unit test coverage for SSL connection with client authentication enabled.

Updates 'grpc-all' and 'netty-tcnative' dependencies to latest versions

Improves null-check and handling

Adds optional argument to 'examples/local' scripts, to allow end-to-end testing of TLS connection to VTGate

Builds optional 'fat JAR' of JDBC driver, for use in standalone situation such as DBeaver, SQuirreL, etc.

Adds JavaDocs, and misc cleanup

Temporarily ignores TLS unit tests, to diagnose issue with Travis CI

Redirects IO from external OpenSSL processes to Travis CI console log

Improves logging

Temporarily disables SSL in TLS unit test

Temporarily disables SSL in TLS unit test

Restores disabled unit tests

Testing Travis CI issues

Travis testing

Adds explicit delays to test race condition theory

Travis testing

Testing Travis

Adds more logging

Adds more logging

Adds more logging

Adds more logging

Adds more logging

Adds more logging

Restores state prior to Travis CI testing

Trying unit tests with larger SSL key size

Increased logging to identify java.security settings

Increased logging to identify java.security settings

Increased logging to identify java.security settings

Increased logging to identify java.security settings

Increase CA cert size to 2048 bits

Increase CA cert size to 2048 bits

Disables basic TLS tests

Re-enables  but disables

Somewhat decouples JDBC TLS unit tests

Ensures that vtgateclienttest mocks terminate after each test suite

Adds delay in unit tests to make sure VTGate has time to start and stop

Adds logging of vtgateclienttest output

Restores  as a subclass of

bugfix

Reverts temporary changes

Trying unit tests with larger SSL key size

Increased logging to identify java.security settings

Increased logging to identify java.security settings

Increased logging to identify java.security settings

Increased logging to identify java.security settings

Increase CA cert size to 2048 bits

Increase CA cert size to 2048 bits

Disables basic TLS tests

Re-enables  but disables

Ensures that vtgateclienttest mocks terminate after each test suite

Adds delay in unit tests to make sure VTGate has time to start and stop

Restores  as a subclass of

bugfix

Reverts temporary changes

Cleanup after git squash

Experimenting with removing sleeps from

Experimenting with removing sleeps from  and
2017-02-02 15:40:27 -08:00
Anthony Yeh 313d926f89 Update to gRPC 1.0.0 and protobuf 3.0.0. (#2012) 2016-09-23 11:41:17 -07:00
Harshit Gangal 3a0cd59e15 added jdbc module 2016-03-11 10:51:46 +05:30
Anthony Yeh 5a23054002 java: Update to grpc-java 0.13.1. 2016-03-02 20:58:26 -08:00
Anthony Yeh 6aa9e2b9a7 java/client: Convert client to asynchronous RPCs.
To get the old synchronous behavior, append `.checkedGet()` to a call
that returns SQLFuture. For example:

```
Cursor cursor = vtgateConn.execute(...).checkedGet();
```
2016-02-19 14:16:35 -08:00
Michael Berlin c7f2b17d5c java: Add "example" project to demonstrate how to use the Java client. 2015-12-17 22:31:16 -08:00
Ammar Aijazi c03a1a2eed Delete old Java client 2015-10-15 17:39:26 -07:00
Shengzhe Yao 7217dd2adc add hadoop support in java/client
1. Move maven-compiler-plugin from sub packages to java/pom.xml.
2. Move row related methods from Cursor class to a new Row class, this
   simplifies operations in Hadoop where it needs a wriable row object.
3. Refactor both SimpleCursor and StreamCursor to follow the Cursor change.
4. Add Hadoop package which depends on java/client and java/grpc.
2015-10-13 11:47:53 -07:00
Anthony Yeh bb20699976 java: Rename grpc client package.
Following the convention we've been using in Go:

The gRPC implementation of vtgateconn is grpcvtgateconn.

This is the gRPC implementation of client, so grpc-client.
2015-08-18 13:13:47 -07:00
Shengzhe Yao e99e9b761d add java client and grpc
1. define rules in the Maven build files to compile the data protos at build time.
2. define a new vtgate service interface that uses the proto3 data structures and
   defines an abstract service.
2015-07-31 22:16:25 -07:00
Shengzhe Yao 982e1e2acf refactor java client pom structure
1. move common dependencies into parent pom.
2. upgrade com.google.guava to 18.0.
3. rename java build target to java_client_test.
4. fix makefile so java client test will run tests from each sub package.
2015-07-29 14:35:49 -07:00
Shengzhe Yao a14720c212 delete java vtocc
Java vtocc currently is not being used and tied to bson rpc.
Please use VTGate based java client instead.
2015-07-13 11:15:12 -07:00
Anand Henry c9376575ac Add GoRPC lib and vtgate-client in top level project 2014-09-23 09:23:36 -07:00
Gareth C Oliver f166f9de09 Implemented VtoccBsonBlockingChannel and integration tests.
Allows creation of driver that communicates with a vtocc instance via Bson using a BlockingChannel. Integration tests extract queries from queryservice_test.py and run them using the driver.
2014-06-17 16:27:17 -07:00
Timothy Basanov 582afef1d5 Support for running python integration tests from Java.
Test is broken and is intended to be fixed in a later release.
2014-06-10 20:59:16 -07:00