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

42 Коммитов

Автор SHA1 Сообщение Дата
Deepthi Sigireddi 648955e610
Merge pull request #5442 from xichengliudui/fix-404-not-found
fix 404 not found
2019-11-22 21:55:01 -08:00
xichengliudui cd2fb68f67 fix 404 not found
Signed-off-by: xichengliudui <1693291525@qq.com>
2019-11-18 18:14:19 +08:00
Harshit Gangal f175158faf java: Bump SNAPSHOT version to 5.0-SNAPSHOT after Vitess release 4.0
Signed-off-by: Harshit Gangal <harshit.gangal@gmail.com>
2019-11-08 14:54:01 +05:30
tanjunchen a205ed390f update license header in java/ tools/ travis/ test.go files
Signed-off-by: tanjunchen <2799194073@qq.com>
2019-10-12 15:55:55 +08:00
chentanjun 1a43e41322 fix-up typo
Signed-off-by: chentanjun <2799194073@qq.com>
2019-08-26 11:28:06 +08:00
huynq0911 1898eba2df Change http to https for security links
For security, we should change http into https links.
This PR also update deprecated links

Signed-off-by: huynq0911 <huynq0911@gmail.com>
2019-02-16 12:41:48 +07:00
Ze'ev Klapow 5ee78a5c0c vitess-hadoop: checkstyle
Signed-off-by: Ze'ev Klapow <zklapow@hubspot.com>
2019-02-07 10:31:27 -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
DK 6aa7a0da34 Adding necessary options for hadoop tests
Signed-off-by: DK <dk@planetscale.com>
2018-11-15 22:50:58 -08: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
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
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
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 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 93506ef1cf Merge pull request #2741 from michael-berlin/java_cleanup_pom_deps
java: Cleaned up Maven configurations.
2017-04-03 12:05:41 -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 7c62ec8f28 Rename all occurences of com/youtube/vitess/* to io/vitess/* as well.
This change is part of https://github.com/youtube/vitess/issues/2725. I forgot to change "com/youtube/vitess" in the previous PR (https://github.com/youtube/vitess/pull/2726)
2017-04-01 23:03:34 -07:00
Michael Berlin 9838447abe Merge pull request #2734 from michael-berlin/java_import_order
java: Fix import order.
2017-03-31 22:39:15 -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 6af4d8040b java: Fix import order.
The Google Java Style Guide requires exactly one block for all non-static imports: https://google.github.io/styleguide/javaguide.html#s3.3.3-import-ordering-and-spacing
2017-03-31 17:12:22 -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
Michael Berlin 33235fd6ba java: Move "hadoop" project under io.vitess.* package hierarchy. 2017-03-30 19:51:03 -07:00
Michael Berlin dc3a1b848a java: Do not use static imports for protobuf enum. 2017-03-30 19:51:03 -07:00
Michael Berlin 21515f5c1a java: Move all generated protobufs under io.vitess.*.
I've updated the code with a simple search and replace.

I also had to run "make proto" and regenerate the Python protobuf files because they include the Java class name in the generated code.
2017-03-30 19:51:02 -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
Bryan Beaudreault 7e5c7f8272 JDBC - Add ConnectionProperties and IncludedFields support (#2478)
* Add ConnectionProperties as a more robust holder for future configurations. Add support for ExecuteOptions.IncludedFields

* fixes from review: some formatting, some comments, and test fix

* fix names
2017-01-21 22:40:20 -08:00
Erez Louidor 75c2397155 Removing SplitQuery plumbing and renaming SplitQueryV2 to SplitQuery 2016-11-04 15:09:55 -07:00
Anthony Yeh 313d926f89 Update to gRPC 1.0.0 and protobuf 3.0.0. (#2012) 2016-09-23 11:41:17 -07:00
Anthony Yeh f5eba61013 Convert Java vttest helper to new proto_topo format. 2016-05-26 20:47:13 -07:00
Anthony Yeh 3d20aefac6 java: Add back Hadoop MapReduce integration test.
This is based on an old test that got left behind in the conversion to
the new proto3-based Java client. I've updated it to use VSchema, which
removes the need for the test to know about keyspace IDs.
2016-05-25 20:14:46 -07:00
Anthony Yeh 2a019daec3 Fix links in hadoop README 2016-05-10 22:02:51 -07:00
Anthony Yeh 0caebaff4c java: Add blocking (synchronous) client wrapper. 2016-03-16 17:53:44 -07:00
Anthony Yeh f3937d4833 java: Update dependencies.
* Get rid of transitive dependency on commons-collections 3.2.1 by
  updating hadoop version.
* Move hadoop dependency from `client` project to `hadoop` project.
2016-03-14 22:34:55 -07: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
Anthony Yeh 93dc38bd48 java: Make Row class more useful without Cursor.
Sometimes we want the type conversion offered by Row,
without the QueryResult processing of Cursor.
2015-12-28 16:15:47 -08:00
Shengzhe Yao b5d4bf062b Add RowWritable class in hadoop package
cursor.Row implments Writable interface which only presents in hadoop.
To get rid of this dependency, a new RowWritable class is created.
2015-10-14 14:44:05 -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