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

35 Коммитов

Автор SHA1 Сообщение Дата
Rohit Nayak 1ebf4f9e39
Copied go.mod/go.sum from master since branch was not compiling with the merged ones
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2020-03-21 00:55:19 +01:00
Rohit Nayak 5f302e1215
Fixed incorrect shard and gtid sorting, vdiff test
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2020-03-21 00:42:40 +01:00
Rohit Nayak d1b9653d02
Updated tests. VDiff defaults to all tablet types. More stream migration logs
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2020-03-21 00:41:24 +01:00
Rohit Nayak bcbf6d2dee
Working e2e tests for vreplication flows
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2020-03-21 00:32:18 +01:00
Carson Anderson fcf1473273 Add Kubernetes topo implementation
Signed-off-by: Carson Anderson <ca@carsonoid.net>
2020-03-14 09:49:37 -06:00
Daniel Kozlowski f569401b5c
Merge pull request #5674 from planetscale/dk-add-azblob-backups
Adding Azure Blob backup support
2020-03-06 13:01:05 -08:00
Sugu Sougoumarane 124cc4399b
DBConfigs Refactor (#5833)
* Added wrapper struct, modified usage

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

* Add go.mod

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

* Refactor dbconfigs and its calls

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

* Fix failing vstreamer test

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

* Fix copy and paste mistakes

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

* Made withCredentials a private function and refactored the calls

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

* Fix Tests

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

* Clean up code

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

* Extend DbConfigs and change method name

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

* Add Connect Method

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

* Pass Context as parameter

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

* Modify definition of DBConfigs

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

* Make Connect function part of the Connector definition

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

* Remove obselete functions

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
2020-03-05 08:31:25 -08:00
Dan Kozlowski 7c84818955 Incorporating feedback from pull request.
Giving Env paramaters for secrets, not just CLI.
Rename prefix to be storage_root i.a.w what we do for s3 and gcs

Signed-off-by: Dan Kozlowski <koz@planetscale.com>
2020-03-04 14:56:06 -08:00
Dan Kozlowski d9d0ad6c94 Adding Azure Blob backup support
This adds initial support for Azure blob service as a backup target

Signed-off-by: Dan Kozlowski <koz@planetscale.com>
2020-03-04 14:56:06 -08:00
Rohit Nayak 9c6bb47b5d Test cases for debug log. Log stream template changed
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2020-03-04 16:10:29 +01:00
pradip parmar 9ef5649e34 Merge remote-tracking branch 'vitess/master' into web-test
Signed-off-by: pradip parmar <prince.soamedia@gmail.com>
2020-02-24 10:36:01 +05:30
Sugu Sougoumarane c051a7051f vrepl: vplayer must rollback on exit
There were code paths where vplayer had an open transaction on
its dbclient connection, which got accidentally continued by
the copier. This caused production issues with some users.

The specific use case that was observed is:
* vreplication performs catchup.
* While it's in the middle of an apply, the context is canceled.
* The copier has no work.
* vreplication is asked to resume from the last saved position.
* It replays the same statements already in the transaction.
* This leads to dup key errors.

This fix conservatively rolls back dbclient before exiting.
The dbclient itself skips rollback if it's not in a transaction.
This change leads to relieable rollbacks where needed. At the
same time, there are no spurious rollbacks if we didn't start
a transaction.

As safety, I've added an extra rollback in the vreplicator loop
just in case the underlying functions accidentally leave an
incomplete transaction open.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2020-02-21 12:07:40 -08:00
pradip parmar 6c71bb2d08 removed unsed functions.
Signed-off-by: pradip parmar <prince.soamedia@gmail.com>
2020-02-18 14:40:04 +05:30
pradip parmar 54afe78a10 vtctld web test .
Signed-off-by: pradip parmar <prince.soamedia@gmail.com>
2020-02-18 14:32:34 +05:30
deepthi 58d4813f24 upgrade aws-sdk-go to 1.28.8
Signed-off-by: deepthi <deepthi@planetscale.com>
2020-01-30 14:17:08 -08:00
Deepthi Sigireddi 0cb011e0e4
Merge pull request #5741 from planetscale/ds-l2vtgate-cleanup
Deprecate disable_local_gateway flag.
2020-01-21 15:49:29 -08:00
Saif Alharthi cf60a5b056 Fix merge conflict
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
2020-01-21 11:10:15 -08:00
Saif Alharthi 9d37f4728f Add go mod and sum
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
2020-01-20 14:48:03 -08:00
Saif Alharthi bd5c3db97c Support additional SHOW synatx
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

Revert previous change (wrong branch!)

Signed-off-by: Morgan Tocker <tocker@gmail.com>

Resolve yaml conflict

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>

vrepl: ExternalizeVindex

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>

vrepl: ExternalizeVindex vtctl command

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>

adds position and last token context to parse errors

Signed-off-by: cmoog <moogcharlie@gmail.com>

adds unit tests for PositionedErr parse error

Signed-off-by: cmoog <moogcharlie@gmail.com>

Add datadog plugin for tracing

Signed-off-by: Karel Alfonso Sague <kalfonso@squareup.com>

prepare statment test case.

Signed-off-by: pradip parmar <prince.soamedia@gmail.com>

prepared_statement: comments changes as per idiomatic go, removed elses.

Signed-off-by: pradip parmar <prince.soamedia@gmail.com>

prepared_statement: unwanted dependency removed.

Signed-off-by: pradip parmar <prince.soamedia@gmail.com>

prepare_statement: dummy commit.

Signed-off-by: pradip parmar <prince.soamedia@gmail.com>

patches error logic

Signed-off-by: cmoog <moogcharlie@gmail.com>

vitess-mixin: add structure & first 2 dashboards

Signed-off-by: Guido Iaquinti <giaquinti@slack-corp.com>

Address #5734 by forming MySQL error packet on query parse error during
COM_PREPARE

Signed-off-by: Jacques Grove <aquarapid@gmail.com>
2020-01-20 13:32:12 -08:00
deepthi 2dc1c7861d Deprecate disable_local_gateway flag. It should have been removed along with l2vtgate functionality
Signed-off-by: deepthi <deepthi@planetscale.com>
2020-01-20 12:30:06 -08:00
Sugu Sougoumarane c4e06a1e62
Merge pull request #5681 from kalfonso/kalfonso.200109-datadog-tracing-plugin
Add datadog plugin for tracing
2020-01-18 20:20:45 -08:00
prince 4e46a60908 mysql server testcase. (#5671)
Signed-off-by: pradip parmar <prince.soamedia@gmail.com>
2020-01-16 17:04:40 -08:00
Karel Alfonso Sague 245508242d Add datadog plugin for tracing
Signed-off-by: Karel Alfonso Sague <kalfonso@squareup.com>
2020-01-10 14:04:05 +11:00
Rohit Nayak 255e321ffb select last_insert_id() working for non-streaming case
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2020-01-06 11:29:17 -08:00
Rohit Nayak a56301ce04 Merge remote-tracking branch 'upstream/master' into embed-vtctld-assets 2019-12-31 00:00:38 +01:00
Jacques Grove 175bb6592c Add proxy protocol support for vtgate.
Signed-off-by: Jacques Grove <aquarapid@gmail.com>
2019-12-19 12:25:06 -08:00
Rohit Nayak 822caed32a Embed web_dir2 contents using go.rice
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2019-12-19 14:01:24 +01:00
Harshit Gangal f92b7aeb42 Adding xxhash Vindex
Signed-off-by: Harshit Gangal <harshit.gangal@gmail.com>
2019-11-15 17:39:41 +05:30
Sugu Sougoumarane 6a5fdd0ccb
Merge pull request #5262 from JavierR14/javier/vitess-docker
VtCompose - Local Vitess Cluster (Docker) Auto-Setup
2019-10-05 07:31:33 -07:00
JavierR14 933bd1a4ce Initial Base Change: base vschema and docker-compose files, create table sql files and base vtcompose program
Signed-off-by: JavierR14 <javier@squareup.com>
2019-10-02 17:02:43 -04:00
Derek Perkins d4299d7789 go.mod: update to grpc-go 1.24.0
Signed-off-by: Derek Perkins <derek@derekperkins.com>
2019-09-26 19:45:08 -06:00
Anthony Yeh d53de4f4f2
xtrabackup: Make sure all files are closed before writing MANIFEST. (#5177)
* Update to latest GCS client.

Signed-off-by: Anthony Yeh <enisoc@planetscale.com>

* xtrabackup: Make sure all files are closed before writing MANIFEST.

We've observed a backup that was missing files, yet had a MANIFEST.
In the built-in backup engine, the contract was that the MANIFEST file
must not be written unless all files were confirmed to have been
uploaded successfully. In XtraBackup mode, we were not meeting this
contract because an error that occurred while closing a file would not
be noticed until after we had written the MANIFEST.

Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
2019-09-10 09:36:10 -07:00
Morgan Tocker 1575b10012 Merge remote-tracking branch 'upstream/master' into morgo-new-go-modules
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-09-03 15:11:10 -06:00
Morgan Tocker 4d8a6a90c9 Change to use tools/tools.go for go get dependencies
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-08-30 10:44:56 -06:00
Morgan Tocker df290b5d6d go mod branch
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-08-16 09:18:43 -06:00