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

15629 Коммитов

Автор SHA1 Сообщение Дата
Dan Kozlowski a9cf065995 Adding in SQL commands to prepare an instance to join an existing shard
Signed-off-by: Dan Kozlowski <koz@planetscale.com>
2019-01-15 14:27:39 -08:00
Sugu Sougoumarane e9e1ab5614
Merge pull request #4524 from nozzle/backup-shard
vtctl: run BackupShard on replica, rdonly or spare
2019-01-14 22:42:39 -08:00
Derek Perkins 47fcfa6a5b vtctl: run BackupShard on replica, rdonly or spare
Signed-off-by: Derek Perkins <derek@derekperkins.com>
2019-01-14 21:30:02 -07:00
Sugu Sougoumarane c1cd824d02
Merge pull request #4514 from HubSpot/dbconfig-reload
reload db-credentials-file upon SIGHUP
2019-01-14 17:03:14 -08:00
Sugu Sougoumarane 789ab8040f
Merge pull request #4523 from adsr/log_rotate_size
Expose `glog.MaxSize` as `-log_rotate_max_size` flag
2019-01-14 17:02:09 -08:00
Adam Saponara ddae5bbfaa Expose `glog.MaxSize` as `-log_rotate_max_size` flag
Signed-off-by: Adam Saponara <as@php.net>
2019-01-14 19:07:43 -05:00
Alex Charis 0b0b841b53 inline ok check; while-range instead of bare while
Signed-off-by: Alex Charis <acharis@hubspot.com>
2019-01-14 17:15:10 -05:00
Sugu Sougoumarane dc154474f6
Merge pull request #4463 from planetscale/ds-cluster-alias
change ClusterAlias in _vt.local_metadata to be keyspace/shard
2019-01-14 13:54:30 -08:00
Alain Jobart b06cf39613
Merge pull request #4520 from alainjobart/tls
tlstest_test: Go 1.12 / TLS 1.3 fix
2019-01-14 09:00:30 -08:00
Sugu Sougoumarane e9e91635d7
Merge pull request #4491 from planetscale/ss-vrepl
VReplication: VStreamer
2019-01-14 08:44:25 -08:00
Sugu Sougoumarane f1f9cca729
Merge pull request #4521 from nozzle/helm-1.0.5
helm: release 1.0.5
2019-01-14 08:40:14 -08:00
Derek Perkins f9f74b3ff2 helm: release 1.0.5
Signed-off-by: Derek Perkins <derek@derekperkins.com>
2019-01-12 12:53:01 -07:00
Sugu Sougoumarane 0e37f1f019 vreplication: address review comments
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2019-01-12 11:40:37 -08:00
Sugu Sougoumarane 976eb3aea3
Merge pull request #4516 from Santiclause/ignore-dual-acl-check
Skip ACL checks for dual pseudotable
2019-01-11 20:24:57 -08:00
Sugu Sougoumarane f8bb8a0dcb
Merge pull request #4515 from mpawliszyn/mikepaw.start-engine
Makes sure the schema engine has started up before getting debug information.
2019-01-11 20:24:22 -08:00
Sugu Sougoumarane c9a7e8c476
Merge pull request #4513 from tinyspeck/add-support-for-columns-named-desc
Support tables that have columns named desc
2019-01-11 20:15:33 -08:00
Sugu Sougoumarane 3d9c1c73ed
Merge pull request #4512 from derekperkins/messages-batch-update
planbuilder: support ON DUPLICATE KEY for message tables
2019-01-11 20:14:42 -08:00
Alain Jobart bf5e4b17ef tlstest_test: Go 1.12 / TLS 1.3 fix
TLS 1.3 pushes detection of some client-side handshake errors to the time of
the first read. For more details, see:
https://github.com/golang/go/issues/28779#issuecomment-442694636

Signed-off-by: Alain Jobart <alainjobart@google.com>
2019-01-11 16:07:44 -08:00
Alex Charis 599854e23f test the signal handler
Signed-off-by: Alex Charis <acharis@hubspot.com>
2019-01-11 09:18:51 -05:00
Michael Hebelka c171538d12 Skip ACL checks for dual pseudotable
Signed-off-by: Michael Hebelka <michael.hebelka@sharpspring.com>
2019-01-10 18:59:11 -05:00
Michael Pawliszyn 8bb1182477 Makes sure the schema engine has started up before getting debug information.
Signed-off-by: Michael Pawliszyn <mikepaw@squareup.com>
2019-01-10 15:34:47 -05:00
Alex Charis eae8f86290 reload db-credentials-file upon SIGHUP
Signed-off-by: Alex Charis <acharis@hubspot.com>
2019-01-10 14:18:46 -05:00
Rafael Chacon 698aa3721d Support tables that have columns named desc
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2019-01-09 17:36:12 -08:00
Derek Perkins 9ab9ecc149 exec_cases: add passing messages OnDup test
Signed-off-by: Derek Perkins <derek@derekperkins.com>
2019-01-09 13:47:26 -07:00
Derek Perkins 28def542b6 exec_cases: add failing tests for msgs on dupe
Signed-off-by: Derek Perkins <derek@derekperkins.com>
2019-01-09 12:58:28 -07:00
Derek Perkins e92c392fa9 planbuilder: support ‘on duplicate key’ for msgs
Signed-off-by: Derek Perkins <derek@derekperkins.com>
2019-01-09 12:45:12 -07:00
Sugu Sougoumarane 182a94245b
Merge pull request #4507 from dweitzman/show_tables_keyspace
Route "show tables from <keyspace>" to the named keyspace
2019-01-09 00:12:25 -08:00
Sugu Sougoumarane 5cafa54f46
Merge pull request #4508 from tinyspeck/check-tablet-type-backup
Check perceived tablet type before taking a backup
2019-01-09 00:11:06 -08:00
Daniel Kozlowski 636b5a14b1
Merge pull request #4506 from derekperkins/orc-no-failover
helm/orchestrator: set FailMasterPromotionIfSQLThreadNotUpToDate = true
2019-01-08 15:19:17 -08:00
David Weitzman 6fec4da70e Route "show tables from <keyspace>" to the named keyspace
This only applies when the query has not already selected a target keyspace.
Some queries that previously error'd should succeed now, but queries that
previously succeeded should not be affected.

Signed-off-by: David Weitzman <dweitzman@pinterest.com>
2019-01-08 14:43:40 -08:00
Derek Perkins 85253b8b82 helm: FailMasterPromotionIfSQLThreadNotUpToDate=tr
Signed-off-by: Derek Perkins <derek@derekperkins.com>
2019-01-08 14:13:13 -07:00
Rafael Chacon 876b842d13 Check perceived tablet type before taking a backup
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2019-01-07 17:08:56 -08:00
Sugu Sougoumarane 42f5c760cc
Merge pull request #4500 from dweitzman/fix_multi_split_error
Fix MultiSplitDiff incorrectly logging "have already found differences"
2019-01-06 12:12:04 -08:00
Sugu Sougoumarane be4235cf5c
Merge pull request #4499 from Santiclause/wip-static-groups
Add group specification to mysql static auth for ACL usage
2019-01-06 12:11:31 -08:00
Sugu Sougoumarane ae79dd48f3
Merge pull request #4455 from dweitzman/always_create_vreplication_table
Gracefully handle a missing vreplication table during vreplication en…
2019-01-04 15:32:40 -08:00
David Weitzman 230bf56e00 Gracefully re-create the vreplication table if it disappears
It might disappear due to someone manually mucking with the db without
restarting the tablet. We hit this due to having a test environment where
the db can be restored to a pre-sharding snapshot withou the tablet restarting.
Prior to this change the tablet would have mustCreate false and would fail to
adapt to disappearence of the vreplication table.

Signed-off-by: David Weitzman <dweitzman@pinterest.com>
2019-01-04 14:33:08 -08:00
Sugu Sougoumarane c5c2c02c9f
Merge pull request #4449 from dweitzman/fix_reverse_failure
Don't freeze with no serving shards if reversing vreplication fails d…
2019-01-04 13:18:08 -08:00
David Weitzman 96e7c5ddba Delete orphan SourceShard records for a failed master migration with reverse replication enabled
Signed-off-by: David Weitzman <dweitzman@pinterest.com>
2019-01-04 10:50:21 -08:00
David Weitzman 5147e9f7e6 Don't freeze with no serving shards if reversing vreplication fails during MigrateServedTypes
Signed-off-by: David Weitzman <dweitzman@pinterest.com>
2019-01-04 10:49:58 -08:00
David Weitzman 3a04099fe5 Fix MultiSplitDiff incorrectly logging "have already found differences"
Signed-off-by: David Weitzman <dweitzman@pinterest.com>
2019-01-04 08:51:53 -08:00
Michael Hebelka 5be6e2a20d Add a StaticUserData test and update json parsing test
Signed-off-by: Michael Hebelka <michael.hebelka@sharpspring.com>
2019-01-03 17:02:13 -05:00
Michael Hebelka de9dd9c168 Add group specification to mysql static auth for ACL usage
Signed-off-by: Michael Hebelka <michael.hebelka@sharpspring.com>
2019-01-03 14:32:05 -05:00
Sugu Sougoumarane 01aa2331cf vreplication: vstream final tweaks
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2019-01-02 19:50:43 -08:00
Sugu Sougoumarane 6ff51d39cf vreplication: tests are done
Also had to added transmission of field info, which may come
in handy for encoding the values on the player end.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2019-01-02 19:50:42 -08:00
Sugu Sougoumarane 6b11903709 vreplication: handle singleton and mariadb issues
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2019-01-02 19:50:42 -08:00
Sugu Sougoumarane 155211762f vreplication: moved tests into vstreamer dir
Also added more tests

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2019-01-02 19:50:42 -08:00
Sugu Sougoumarane b17b55139c vreplication: more vstreamer tests
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2019-01-02 19:50:42 -08:00
Sugu Sougoumarane 7fd0c825db vreplication: MariaDB test tweaks and more tests
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2019-01-02 19:50:42 -08:00
Sugu Sougoumarane 7f1c7b5657 vreplication: tests: statements and DDL add column
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2019-01-02 19:50:42 -08:00
Sugu Sougoumarane bd7fe99b18 vreplication: make a singleton srvtopo.Server
Also need to make VSchemaErrors into a singleton

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2019-01-02 19:50:42 -08:00