Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
246 commits
Select commit Hold shift + click to select a range
6a15e54
add MysqlServerConnCountPerUser to vtgate /debug/vars
Jul 5, 2018
ec3662c
removed "func scope" as suggested
Jul 16, 2018
3550f7b
enable query logging to file in the local examples
demmer Aug 23, 2018
a37b375
[go/mysql] use tiered pool for buffers to avoid false hits
LK4D4 Sep 5, 2018
d358356
[go/mysql] make query benchmarks more even to reads and writes
LK4D4 Sep 6, 2018
b2ca155
Merge pull request #4185 from LK4D4/more_benchmark
sougou Sep 6, 2018
5b4500c
Merge pull request #4183 from LK4D4/tiered_pool
sougou Sep 6, 2018
11f31cf
[go/mysql] remove static buffer from Conn
LK4D4 Sep 5, 2018
643873a
Merge pull request #4182 from LK4D4/avoid_static_buffer
sougou Sep 6, 2018
e9b91d0
Allow updating fields to null
eeSeeGee Sep 7, 2018
ee10451
Kill vtctld commands that outlive the http request context
dweitzman Sep 7, 2018
684e132
Merge pull request #4187 from eeSeeGee/young.20180907.update_null
sougou Sep 8, 2018
88773f3
Merge pull request #4189 from dweitzman/vtctld_timeout
sougou Sep 8, 2018
3309b4f
Proposed alternate way to use write buffer.
sougou Sep 9, 2018
b97ba65
mysql: address review comments and fix tests
sougou Sep 9, 2018
0f34322
mysql: address further review comments.
sougou Sep 10, 2018
72f2a00
Adding FIELDS as a option for SHOW
Sep 10, 2018
0d54495
Adding in support for MariaDB 10.3
Sep 10, 2018
186ce3b
mysql: flush before closing on defer
sougou Sep 10, 2018
3c8d86f
Adding in backwards compatability for those who might not have set EX…
Sep 10, 2018
a14e38c
Adding full support for parsing SHOW FIELDS
Sep 10, 2018
fc41fc3
Merge pull request #4190 from sougou/mysql
sougou Sep 11, 2018
b4fb532
Adding the config root for the extra config files
Sep 11, 2018
8870e11
Merge pull request #2 from vitessio/master
Sep 12, 2018
a9da7e2
[go/mysql] add ability to create server connection with unbuffered reads
LK4D4 Sep 14, 2018
addf2c2
Merge pull request #4196 from LK4D4/unbuffered_reader2
sougou Sep 17, 2018
f3b6a39
Support setting the vtcombo transaction_mode
tirsen Sep 19, 2018
8d43431
Add S3 support for appliance: Cloudian HyperStore
sjmudd Jul 4, 2018
68630f3
dereference bucket, which is a string pointer
Sep 18, 2018
5940b27
add -s3_backup_tls_skip_verify_cert flag
Sep 19, 2018
42df623
travis: Disable remote-stats reporting.
enisoc Sep 19, 2018
b31aed0
Merge pull request #4201 from enisoc/remote-stats
enisoc Sep 19, 2018
f760bc5
Update ffi
arthurnn Sep 21, 2018
0666c45
Adds batch time as parameter
Sep 21, 2018
ecedd21
Better naming for variable
Sep 21, 2018
9f54f6c
Updates per code review
Sep 21, 2018
7806eb4
Merge pull request #4211 from tinyspeck/batch-time-parameter
demmer Sep 22, 2018
cbcebfd
Merge pull request #4210 from arthurnn/update_ffi_gem
sougou Sep 22, 2018
18edbf2
Removing Tabs, Adding grouping to logical conditions
Sep 22, 2018
c1a2311
Cleans up vtexplain environment
Sep 22, 2018
c551233
Merge pull request #4213 from tinyspeck/fix-vtexplain
demmer Sep 22, 2018
30e1f02
Pass an Executor to Futures.catchingAsync()
swankjesse Sep 23, 2018
32efd1e
Tweaks to vagrant setup
Sep 23, 2018
7ddb932
Fix per code climate
Sep 23, 2018
69388d4
Merge pull request #4215 from tinyspeck/tweaks-vagrant-setup
sougou Sep 24, 2018
c85e1a5
Merge pull request #4200 from slanning/s3_appliance
sougou Sep 24, 2018
cb88b8c
Merge pull request #4192 from planetscale/dk-update-parser-fields
sougou Sep 24, 2018
49ee5d3
Merge pull request #4193 from planetscale/dk-add-maria-103
sougou Sep 24, 2018
3383d80
Merge pull request #4152 from tinyspeck/local-examples-querylog-to-file
sougou Sep 24, 2018
58ea83c
Merge pull request #4070 from slanning/debug_vars_user_count
sougou Sep 24, 2018
35dc2b1
Allow vtbench to use mysql socket connections
Sep 24, 2018
a85a9f2
Merge pull request #4199 from tirsen/pass-vtcombo-flags
sougou Sep 24, 2018
dd436b4
Forgot to commit these files
Sep 24, 2018
4db6736
security: fix reported security issues
sougou Sep 24, 2018
0b53fca
Merge pull request #4217 from sougou/security
sougou Sep 25, 2018
13e4fac
Merge pull request #4216 from tinyspeck/allows-vtbench-to-use-socket
sougou Sep 25, 2018
8970638
Merge pull request #4214 from swankjesse/jwilson.0922.guava_grief
sougou Sep 25, 2018
d785237
Upgrade Guava, Protobuf, gRPC, Netty, and others
swankjesse Sep 25, 2018
2cc5a75
Add support for SET autocommit=ON/OFF
Sep 26, 2018
b951abb
Indent generated comments (fix checks for shard1)
Sep 26, 2018
6a69423
Add tests for parser.
Sep 26, 2018
66bb819
Merge pull request #4220 from kuba--/set-autocommit
sougou Sep 26, 2018
73fcbf2
Merge pull request #4218 from swankjesse/jwilson.0925.upgrade_deps
sougou Sep 26, 2018
f868982
Initial import of change to parallelize backup compresion
ameetkotian Sep 17, 2018
b5b1b9e
Add more verbose error for invalid query.
Sep 28, 2018
ae5c4d7
py: Change CallerID to have a useful repr.
michael-berlin Sep 28, 2018
8797a2a
Merge pull request #4224 from michael-berlin/caller_id
michael-berlin Sep 28, 2018
652d61b
Create VTTabletModes.md
sougou Sep 29, 2018
fa92715
doc: VTTabletModes vitess.io wireup
sougou Sep 30, 2018
9bd72f4
doc: link to vtexplain.md
sougou Sep 30, 2018
7df580b
Merge pull request #4222 from kuba--/noalias-subquery
sougou Sep 30, 2018
0b11e79
Log vtcombo output to stderr
tirsen Oct 1, 2018
d9583f9
[go/mysql] combine ephemeral read policies into one
LK4D4 Oct 1, 2018
10c59b6
Merge pull request #4226 from tirsen/vtcombo-stderr
sougou Oct 1, 2018
26f1ee4
Merge pull request #4227 from LK4D4/remove_read_strategies
sougou Oct 1, 2018
84200a7
Adds dependencies needed for pull/4221
Oct 1, 2018
40e003c
Recompile sql.go with latest version of goyacc.
Oct 2, 2018
8d01507
Merge pull request #4231 from tinyspeck/adds-klauspost-compression
sougou Oct 2, 2018
2c174b5
Merge branch 'upstream-master' into akotian/parallelize_backups
Oct 2, 2018
734c1cb
api/ks_tables
Oct 2, 2018
956508a
Support specifying the data dir on the command line for vttestserver
tirsen Oct 2, 2018
1e49f45
Metrics for scatter queries
tirsen Oct 1, 2018
bc9bbcd
Use CountersWithSingleLabel and remove some metrics
tirsen Oct 3, 2018
7654da0
Merge pull request #4235 from tirsen/scatter-metrics
sougou Oct 3, 2018
3accb65
[go/mysql] combine ephemeral write policies to one
LK4D4 Oct 2, 2018
68992f3
helm: update Orchestrator to 3.0.12
derekperkins Oct 4, 2018
54125d2
helm: update pmm-client to 1.14.1
derekperkins Oct 4, 2018
3d731b3
docker: use k8s instead of base for pmm-client
derekperkins Oct 4, 2018
249d339
add a RouteType() member to the Primitive
demmer Oct 3, 2018
c5afc12
add ResetAll to CountersWithSingleLabel
demmer Oct 3, 2018
42b1958
track the number of queries processed and scatted routed for all plans
demmer Oct 4, 2018
f34b27f
doc: fix keypsace typos
derekperkins Oct 4, 2018
8872101
Flag for setting callerid in vtworker
dweitzman Aug 16, 2018
f0386d9
Merge pull request #4241 from derekperkins/keypsace
michael-berlin Oct 4, 2018
db6a3e8
Merge pull request #4243 from dweitzman/vtworker_callerid_param
sougou Oct 4, 2018
7e49c7e
[planbuilder] remove unnecessary for in skipParenthesis
LK4D4 Oct 5, 2018
910d15f
Merge pull request #4244 from LK4D4/remove_for
sougou Oct 5, 2018
affebed
go: update to go 1.11
derekperkins Oct 5, 2018
d39f8a3
Merge pull request #4246 from derekperkins/go1.11
sougou Oct 5, 2018
b9b8cf1
resharding: safer MigrateServedTypes
sougou Oct 7, 2018
1ea0d1c
add a raw ParseTokenizer interface to call yyParse under the hood
demmer Oct 8, 2018
22b54de
Merge pull request #4250 from tinyspeck/quiet-unused-yyparse
sougou Oct 8, 2018
6117665
fix typo caught in PR review
demmer Oct 8, 2018
1b1ada4
Merge pull request #4237 from derekperkins/helm-updates
sougou Oct 8, 2018
73ab915
Merge pull request #4234 from LK4D4/one_write_to_rule_them_all
sougou Oct 8, 2018
1c2dea1
Merge pull request #4233 from tirsen/jontirsen/2018-10-02/data-dir
sougou Oct 8, 2018
ac0f7eb
[go/timer] eliminate time.After
LK4D4 Oct 1, 2018
700aa88
Merge pull request #4229 from LK4D4/eliminate_after_timer
sougou Oct 8, 2018
51a85af
Merge pull request #4221 from tinyspeck/akotian/parallelize_backups
sougou Oct 8, 2018
9b3b2f5
Merge pull request #4240 from tinyspeck/generic-scatter-metrics
sougou Oct 8, 2018
3e737a2
Revert "Merge pull request #4235 from tirsen/scatter-metrics"
demmer Oct 9, 2018
6b09466
Merge pull request #4255 from tinyspeck/revert-one-off-scatter-metrics
sougou Oct 9, 2018
e4d507b
[go/mysql] combine ephemeral buffers into one field
LK4D4 Oct 9, 2018
b0e9112
Merge pull request #4256 from LK4D4/combine_packets
sougou Oct 9, 2018
7e4be51
add a test to show the behavior when no vindex row matches
demmer Oct 9, 2018
af84d26
Merge pull request #4259 from tinyspeck/test-select-no-vindex-lookup-…
sougou Oct 10, 2018
9f05597
resharding: address review comments
sougou Oct 10, 2018
5b84cb7
Merge pull request #4248 from planetscale/resharding
sougou Oct 10, 2018
29c82a8
resharding: auto-reverse replication
sougou Oct 8, 2018
34a6aa2
[go/mysql] get rid of unnecessary switches for ephemeral policy
LK4D4 Oct 9, 2018
c71b3e5
Adds reference log lines when draining extra rows during a diff.
mpawliszyn Oct 10, 2018
47e09f6
enhance AllErrorRecorder to support positional error recording
demmer Sep 27, 2018
943c5e3
rework ExecuteMultiShard to return an array of errors per shard
demmer Sep 27, 2018
b2a3435
add engine support for optional partial success on scatter queries
demmer Oct 10, 2018
4ef379a
add planbuilder support for a SHARD_PARTIAL comment directive
demmer Oct 11, 2018
df98711
add executor test for scatter partial results
demmer Oct 11, 2018
8e71b25
Merge pull request #4263 from LK4D4/rewrite_switch
sougou Oct 12, 2018
290de9e
Fix golint install in bootstrap.sh
Oct 12, 2018
968cacc
helm: support new MariaDB103 flavor
derekperkins Oct 12, 2018
b5e1282
Follow the MySQL handshake protocol and send 10 NULL bytes
arthurnn Oct 12, 2018
eb8cb90
mysql: binlog_streamer unexpected panic
sougou Oct 12, 2018
b2f485e
doc: addres review comments for VTTabletModes.doc
sougou Oct 13, 2018
e478cc7
vtgate: health-check API
Oct 15, 2018
71fb652
API change: api/keyspace/my_ks/tablets[/shard]
Oct 15, 2018
8a9d743
fix shard param
Oct 15, 2018
8f2ccae
Merge pull request #4225 from planetscale/ss-dox
sougou Oct 15, 2018
8b50c8b
[MySQL] Make Connection Close threadsafe
Sep 28, 2018
db3a8fd
change the partial scatter semantics to succeed even if all shards fail
demmer Oct 16, 2018
c8a7bc5
rename the SHARD_PARTIAL directive to SCATTER_ERRORS_AS_WARNINGS
demmer Oct 16, 2018
c51137c
allow IGNORE in update sql statements
deepthi Oct 16, 2018
5f77935
Updating list of acceptable TLS Ciphers
Oct 16, 2018
3a93176
Allow older versions of TLS, but still limit ciphers
Oct 17, 2018
3b693e0
Modifying TLS unit tests to use internal client
Oct 17, 2018
f7f9a5d
Merge pull request #4268 from HubSpot/fix-golint-install-in-bootstrap
michael-berlin Oct 17, 2018
a54651c
#4147 store 3 error messages from filtered replication
deepthi Oct 17, 2018
7b9ab12
use latest goyacc to avoid trivial diff causing CI failure
deepthi Oct 17, 2018
4cc8f3f
Merge pull request #4232 from github/ks-tablets-api-2
sougou Oct 17, 2018
b019958
Merge pull request #4270 from planetscale/ss-json
sougou Oct 17, 2018
3ee62c9
Merge pull request #4261 from mpawliszyn/mikepaw.log-drain
sougou Oct 17, 2018
b3366b7
Merge pull request #4223 from danieltahara/connclose
sougou Oct 17, 2018
0a82e96
Merge pull request #4269 from derekperkins/helm-mariadb103
sougou Oct 17, 2018
3793035
Merge pull request #4271 from github/vtgate-health-check-api-2
sougou Oct 17, 2018
157ce62
Merge pull request #4276 from planetscale/dk-disable-des3
sougou Oct 17, 2018
68f33e4
Merge pull request #4283 from arthurnn/arthurnn/null_10b_handshake
sougou Oct 17, 2018
138b06e
fix comment per review
deepthi Oct 17, 2018
ea53654
fix IsDuplicate per review comments
deepthi Oct 17, 2018
2512f47
[go/mysql] implement Shutdown for mysql.Listener
LK4D4 Oct 17, 2018
efbcfc9
Merge pull request #4282 from planetscale/ds-filtered-replication-err…
sougou Oct 17, 2018
8aa1851
Clarify unit for replication lag
tirsen Oct 18, 2018
c32d29c
Merge pull request #4277 from planetscale/ds-update-ignore-2
sougou Oct 18, 2018
97d94af
Merge pull request #4286 from tirsen/jontirsen/2018-10-18/clarify-unit
sougou Oct 18, 2018
d45cc89
config: remove query_cache_size for MySQL 8 compat
derekperkins Oct 18, 2018
bd08632
config: set secure_file_priv = NULL to disable
derekperkins Oct 18, 2018
0575e61
allow flush sql statement
deepthi Oct 19, 2018
48ed4ba
generated file
deepthi Oct 19, 2018
d7a2920
Updating Dockerfiles to set User only on base containers
Oct 19, 2018
07027d5
Use correct indentation for Makefile
Oct 20, 2018
c4cb5ac
Merge pull request #4290 from planetscale/ds-flush-tables
sougou Oct 20, 2018
c28f34a
Merge pull request #4289 from derekperkins/mysql8
sougou Oct 20, 2018
8ed64fb
Merge pull request #4285 from LK4D4/graceful_shutdown
sougou Oct 20, 2018
50960f6
Merge pull request #4262 from planetscale/ss-resharding
sougou Oct 20, 2018
23d186a
resharding: CancelResharding
sougou Oct 8, 2018
9cf7588
Reverse replication should not be the default in workflows
Oct 21, 2018
52d48af
Merge pull request #4292 from planetscale/dk-dockerfile-reorder-user
sougou Oct 21, 2018
cb8c317
Merge pull request #4296 from tinyspeck/reverse-replication-workflow-…
sougou Oct 21, 2018
c2aec6c
resharding: update documentation
sougou Oct 21, 2018
5a72a94
init_db.sql: add explicit CREATE USER statements
derekperkins Oct 21, 2018
137eb27
Merge pull request #4298 from derekperkins/helm-tweaks
sougou Oct 21, 2018
983d7e2
doc: FAQ
sougou Oct 21, 2018
44180fb
Merge pull request #4295 from planetscale/ss-resharding
sougou Oct 22, 2018
9c63fa7
resharding: ShowResharding
sougou Oct 8, 2018
7e2233f
helm: update pmm-client from 1.14.1 to 1.15.0
derekperkins Oct 23, 2018
6251263
Revert "enhance AllErrorRecorder to support positional error recording"
demmer Oct 23, 2018
0bad748
add a GetErrors interface to the AllErrorRecorder
demmer Oct 23, 2018
9ad6a06
update scatter_conn to no longer use AllErrorRecorder.RecordErrorAt
demmer Oct 23, 2018
dc8d34c
helm: add config map support for EXTRA_MY_CNF
derekperkins Oct 23, 2018
26cb2d0
helm: fix InitShardMaster Job
derekperkins Oct 23, 2018
fcc728a
Add auth config to consul client
Oct 24, 2018
ccc4be5
Refactor to cleanup configuration parsing
Oct 24, 2018
598c833
Updating comments for clarity
Oct 24, 2018
863fe0f
allow `hash` vindexes to support signed ints
Oct 24, 2018
be3ae7e
mysqlctl: support MySQL 8 backups
derekperkins Oct 24, 2018
59dcd26
doc: address review comments
derekperkins Oct 25, 2018
1520d4c
Merge pull request #4299 from planetscale/ss-dox
sougou Oct 25, 2018
68ee028
Move TABLES to non-keywords.
Oct 26, 2018
994c3d5
Make sure not to allow concurrent engine reloads
Oct 26, 2018
70f561e
Make sure to not drop errors
Oct 26, 2018
70d848c
Instead of using fmt.Error, wrap errors
Oct 26, 2018
4e4debb
remove unmarshalRequest since it is not used
demmer Oct 26, 2018
d72aeb8
More error wrapping
Oct 26, 2018
7b94510
Add comments and rename struct for clarity
Oct 26, 2018
5282763
Refactor per code climate
Oct 26, 2018
0f25ad1
Forcing the docker unit tests builds to run with the user vitess
Oct 24, 2018
5f5ebca
Merge pull request #4312 from planetscale/dk-run-tests-as-vitess
sougou Oct 27, 2018
32a9074
Merge pull request #4301 from derekperkins/pmm-client-1.15.0
sougou Oct 27, 2018
b5f3c0b
Merge pull request #4300 from planetscale/ss-resharding
sougou Oct 27, 2018
b4c0194
Merge pull request #4305 from derekperkins/helm-updates
sougou Oct 27, 2018
2f4a92f
Merge pull request #4308 from derekperkins/mysql8-backup
sougou Oct 27, 2018
ed62494
Merge pull request #4317 from tinyspeck/remove-unused-unmarshal-request
sougou Oct 27, 2018
083575f
Merge pull request #4315 from systay/reload-drop-errors
sougou Oct 27, 2018
a2d8aa5
Merge pull request #4314 from systay/no-concurrent-reload
sougou Oct 27, 2018
1602c7c
Merge pull request #4316 from systay/wrap-errors
sougou Oct 27, 2018
5be0f3c
Merge pull request #4313 from kuba--/tables-keyword
sougou Oct 27, 2018
85f0f62
Address PR review feedback
Oct 27, 2018
b46a320
Merge pull request #4306 from tinyspeck/add-auth-config-consul
sougou Oct 27, 2018
41d3c1b
Merge pull request #4228 from tinyspeck/partial-scatter
sougou Oct 27, 2018
61a253c
add a new query.QueryWarning array to the vtgate.Session proto
demmer Oct 16, 2018
7ba5a65
add show warnings support to the grammar
demmer Oct 16, 2018
5295268
add a sqltypes.NewUint32 helper
demmer Oct 16, 2018
f2653fd
add show warnings support to the vtgate executor
demmer Oct 16, 2018
4095e4c
fix sqlparser test to expect escaped `warnings` in field list
demmer Oct 24, 2018
2e01320
mysql: move server-side command handling into the Conn class
demmer Oct 12, 2018
a1acbe2
Add mysql protocol support for warning counts
demmer Oct 15, 2018
9756ddd
add an end to end test for the mysql server warnings support
demmer Oct 15, 2018
99c600a
add end to end tests for the mysql client warnings support
demmer Oct 15, 2018
c7b6184
Bump Go versions and use '.x' to always get latest minor versions
HaraldNordgren Oct 28, 2018
2dbb282
docker/helm: update orchestrator to v3.0.13
derekperkins Oct 28, 2018
43c9402
Merge pull request #4319 from derekperkins/orc-3.0.13
sougou Oct 28, 2018
f969b20
Merge pull request #4272 from tinyspeck/mysql-server-support-warning-…
sougou Oct 28, 2018
1a140f9
Merge pull request #4280 from tinyspeck/vtgate-support-warnings
sougou Oct 28, 2018
9e0930d
add vtgate engine support to record warnings in the session
demmer Oct 18, 2018
3f8cd46
return the count of warnings in the current session
demmer Oct 18, 2018
bc5abdd
clear warnings from the session for all statements except SHOW
demmer Oct 18, 2018
5fc6e90
add get_warnings to the python client connection class
demmer Oct 19, 2018
db0c7dc
add end to end tests of the partial scatter directive
demmer Oct 19, 2018
c1a5a3c
rework partial scatter warnings to preserve the sql error code
demmer Oct 26, 2018
021904e
Merge pull request #4318 from HaraldNordgren/go_versions
sougou Oct 28, 2018
3cf824d
fix the errno extraction for the scatter errors as warnings feature
demmer Oct 29, 2018
9ca51ff
fix end to end tests to verify the right error codes in warnings
demmer Oct 29, 2018
19aa379
ignore .vscode files
demmer Oct 29, 2018
edaead8
Merge pull request #4322 from tinyspeck/gitignore-vscode
sougou Oct 29, 2018
9652ca0
changed the signed-int hash mapping to be less strict
Oct 29, 2018
1326a63
add mutex protection around clearing the warnings from the session
demmer Oct 29, 2018
2dc33ec
Merge pull request #4309 from slanning/vindex-signed-int
sougou Oct 29, 2018
8e1c501
Merge pull request #4293 from tinyspeck/partial-scatter-with-warnings
sougou Oct 29, 2018
131fc36
Merge branch 'upstream-master' into slack-vitess-2018-10-29.r0
Oct 29, 2018
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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
*.swp
tags

# emacs
*~

# Eclipse files
.classpath
.project
Expand All @@ -21,6 +24,9 @@ tags
*.iml
.idea

# vscode
.vscode/

# C build dirs
**/build

Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:

language: go
go:
- 1.9
- 1.11.x
go_import_path: vitess.io/vitess
env:
global:
Expand All @@ -42,7 +42,7 @@ env:
# See: https://docs.travis-ci.com/user/customizing-the-build#Build-Timeouts
# To diagnose stuck tests, add "-follow" to TEST_FLAGS below. Then test.go
# will print the test's output.
- TEST_FLAGS="-docker -use_docker_cache -timeout=8m -print-log -remote-stats=http://enisoc.com:15123/travis/stats"
- TEST_FLAGS="-docker -use_docker_cache -timeout=8m -print-log"
matrix:
# NOTE: Travis CI schedules up to 5 tests simultaneously.
# All our tests should be spread out as evenly as possible across these 5 slots.
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ docker_lite_percona:
docker_lite_percona57:
cd docker/lite && ./build.sh --prompt=$(PROMPT_NOTICE) percona57

docker_lite_alpine:
cd docker/lite && ./build.sh --prompt=$(PROMPT_NOTICE) alpine

docker_guestbook:
cd examples/kubernetes/guestbook && ./build.sh

Expand All @@ -233,7 +236,7 @@ docker_unit_test:
# tests in Travis. The results are saved in test/config.json, which you can
# then commit and push.
rebalance_tests:
go run test.go -rebalance 5 -remote-stats http://enisoc.com:15123/travis/stats
go run test.go -rebalance 5

# Release a version.
# This will generate a tar.gz file into the releases folder with the current source
Expand Down
11 changes: 9 additions & 2 deletions config/init_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -37,43 +37,50 @@ CREATE TABLE IF NOT EXISTS _vt.shard_metadata (
) ENGINE=InnoDB;

# Admin user with all privileges.
CREATE USER 'vt_dba'@'localhost';
GRANT ALL ON *.* TO 'vt_dba'@'localhost';
GRANT GRANT OPTION ON *.* TO 'vt_dba'@'localhost';

# User for app traffic, with global read-write access.
CREATE USER 'vt_app'@'localhost';
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, FILE,
REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES,
LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW,
SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER
ON *.* TO 'vt_app'@'localhost';

# User for app debug traffic, with global read access.
CREATE USER 'vt_appdebug'@'localhost';
GRANT SELECT, SHOW DATABASES, PROCESS ON *.* TO 'vt_appdebug'@'localhost';

# User for administrative operations that need to be executed as non-SUPER.
# Same permissions as vt_app here.
CREATE USER 'vt_allprivs'@'localhost';
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, FILE,
REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES,
LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW,
SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER
ON *.* TO 'vt_allprivs'@'localhost';

# User for slave replication connections.
CREATE USER 'vt_repl'@'%';
GRANT REPLICATION SLAVE ON *.* TO 'vt_repl'@'%';

# User for Vitess filtered replication (binlog player).
# Same permissions as vt_app.
CREATE USER 'vt_filtered'@'localhost';
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, PROCESS, FILE,
REFERENCES, INDEX, ALTER, SHOW DATABASES, CREATE TEMPORARY TABLES,
LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW,
SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER
ON *.* TO 'vt_filtered'@'localhost';

# User for Orchestrator (https://github.com/github/orchestrator).
CREATE USER 'orc_client_user'@'%' IDENTIFIED BY 'orc_client_user_password';
GRANT SUPER, PROCESS, REPLICATION SLAVE, RELOAD
ON *.* TO 'orc_client_user'@'%' IDENTIFIED BY 'orc_client_user_password';
ON *.* TO 'orc_client_user'@'%';
GRANT SELECT
ON _vt.* TO 'orc_client_user'@'%' IDENTIFIED BY 'orc_client_user_password';
ON _vt.* TO 'orc_client_user'@'%';

FLUSH PRIVILEGES;

3 changes: 1 addition & 2 deletions config/mycnf/default-fast.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@ max_connections = 100
net_write_timeout = 60
pid-file = {{.PidFile}}
port = {{.MysqlPort}}
query_cache_size = 0
query_cache_type = 0
# all db instances should start in read-only mode - once the db is started and
# fully functional, we'll push it into read-write mode
read-only
read_buffer_size = 1M
read_rnd_buffer_size = 1M
secure_file_priv = NULL
server-id = {{.ServerID}}
skip-name-resolve
# we now need networking for replication. this is a tombstone to simpler times.
Expand Down
21 changes: 1 addition & 20 deletions config/mycnf/default.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ innodb_log_file_size = 64M
innodb_log_files_in_group = 2
innodb_log_group_home_dir = {{.InnodbLogGroupHomeDir}}
innodb_max_dirty_pages_pct = 75
innodb_support_xa = 0
innodb_thread_concurrency = 20
key_buffer_size = 32M
log-error = {{.ErrorLogPath}}
Expand All @@ -32,13 +31,12 @@ max_connections = 100
net_write_timeout = 60
pid-file = {{.PidFile}}
port = {{.MysqlPort}}
query_cache_size = 0
query_cache_type = 0
# all db instances should start in read-only mode - once the db is started and
# fully functional, we'll push it into read-write mode
read-only
read_buffer_size = 1M
read_rnd_buffer_size = 1M
secure_file_priv = NULL
server-id = {{.ServerID}}
skip-name-resolve
# all db instances should skip the slave startup - that way we can do any
Expand All @@ -56,20 +54,3 @@ thread_cache_size = 200
tmpdir = {{.TmpDir}}
tmp_table_size = 32M
transaction-isolation = REPEATABLE-READ

# Semi-sync replication is required for automated unplanned failover
# (when the master goes away). Here we just load the plugin so it's
# available if desired, but it's disabled at startup.
#
# If the -enable_semi_sync flag is used, VTTablet will enable semi-sync
# at the proper time when replication is set up, or when masters are
# promoted or demoted.
plugin-load = rpl_semi_sync_master=semisync_master.so;rpl_semi_sync_slave=semisync_slave.so

# When semi-sync is enabled, don't allow fallback to async
# if you get no ack, or have no slaves. This is necessary to
# prevent alternate futures when doing a failover in response to
# a master that becomes unresponsive.
rpl_semi_sync_master_timeout = 1000000000000000000
rpl_semi_sync_master_wait_no_slave = 1

17 changes: 17 additions & 0 deletions config/mycnf/master_mariadb.cnf
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# enable strict mode so it's safe to compare sequence numbers across different server IDs.
gtid_strict_mode = 1
innodb_stats_persistent = 0
innodb_support_xa = 0

# Semi-sync replication is required for automated unplanned failover
# (when the master goes away). Here we just load the plugin so it's
# available if desired, but it's disabled at startup.
#
# If the -enable_semi_sync flag is used, VTTablet will enable semi-sync
# at the proper time when replication is set up, or when masters are
# promoted or demoted.
plugin-load = rpl_semi_sync_master=semisync_master.so;rpl_semi_sync_slave=semisync_slave.so

# When semi-sync is enabled, don't allow fallback to async
# if you get no ack, or have no slaves. This is necessary to
# prevent alternate futures when doing a failover in response to
# a master that becomes unresponsive.
rpl_semi_sync_master_timeout = 1000000000000000000
rpl_semi_sync_master_wait_no_slave = 1
21 changes: 21 additions & 0 deletions config/mycnf/master_mariadb103.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# enable strict mode so it's safe to compare sequence numbers across different server IDs.
gtid_strict_mode = 1
innodb_stats_persistent = 0

# Semi-sync replication is required for automated unplanned failover
# (when the master goes away). Here we just load the plugin so it's
# available if desired, but it's disabled at startup.
#
# If the -enable_semi_sync flag is used, VTTablet will enable semi-sync
# at the proper time when replication is set up, or when masters are
# promoted or demoted.

# semi_sync has been merged into master as of mariadb 10.3 so this is no longer needed
#plugin-load = rpl_semi_sync_master=semisync_master.so;rpl_semi_sync_slave=semisync_slave.so

# When semi-sync is enabled, don't allow fallback to async
# if you get no ack, or have no slaves. This is necessary to
# prevent alternate futures when doing a failover in response to
# a master that becomes unresponsive.
rpl_semi_sync_master_timeout = 1000000000000000000
rpl_semi_sync_master_wait_no_slave = 1
16 changes: 16 additions & 0 deletions config/mycnf/master_mysql56.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,19 @@ relay_log_recovery = 1

# Native AIO tends to run into aio-max-nr limit during test startup.
innodb_use_native_aio = 0

# Semi-sync replication is required for automated unplanned failover
# (when the master goes away). Here we just load the plugin so it's
# available if desired, but it's disabled at startup.
#
# If the -enable_semi_sync flag is used, VTTablet will enable semi-sync
# at the proper time when replication is set up, or when masters are
# promoted or demoted.
plugin-load = rpl_semi_sync_master=semisync_master.so;rpl_semi_sync_slave=semisync_slave.so

# When semi-sync is enabled, don't allow fallback to async
# if you get no ack, or have no slaves. This is necessary to
# prevent alternate futures when doing a failover in response to
# a master that becomes unresponsive.
rpl_semi_sync_master_timeout = 1000000000000000000
rpl_semi_sync_master_wait_no_slave = 1
21 changes: 21 additions & 0 deletions data/test/vtgate/dml_cases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1512,3 +1512,24 @@
"Query": "delete from unsharded where col = (select id from unsharded_a where id = unsharded.col)"
}
}

# update vindex value to null
"update user set name = null where id = 1"
{
"Original": "update user set name = null where id = 1",
"Instructions": {
"Opcode": "UpdateEqual",
"Keyspace": {
"Name": "user",
"Sharded": true
},
"Query": "update user set name = null where id = 1",
"Vindex": "user_index",
"Values": [1],
"ChangedVindexValues": {
"name_user_map": [null]
},
"Table": "user",
"OwnedVindexQuery": "select Name, Costly from user where id = 1 for update"
}
}
62 changes: 62 additions & 0 deletions data/test/vtgate/select_cases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,68 @@
}
}

# select with partial scatter directive
"select /*vt+ SCATTER_ERRORS_AS_WARNINGS=1 */ * from user"
{
"Original": "select /*vt+ SCATTER_ERRORS_AS_WARNINGS=1 */ * from user",
"Instructions": {
"Opcode": "SelectScatter",
"Keyspace": {
"Name": "user",
"Sharded": true
},
"Query": "select /*vt+ SCATTER_ERRORS_AS_WARNINGS=1 */ * from user",
"FieldQuery": "select * from user where 1 != 1",
"ScatterErrorsAsWarnings": true
}
}

# select aggregation with partial scatter directive
"select /*vt+ SCATTER_ERRORS_AS_WARNINGS=1 */ count(*) from user"
{
"Original": "select /*vt+ SCATTER_ERRORS_AS_WARNINGS=1 */ count(*) from user",
"Instructions": {
"Aggregates": [
{
"Opcode": "count",
"Col": 0
}
],
"Keys": null,
"Input": {
"Opcode": "SelectScatter",
"Keyspace": {
"Name": "user",
"Sharded": true
},
"Query": "select /*vt+ SCATTER_ERRORS_AS_WARNINGS=1 */ count(*) from user",
"FieldQuery": "select count(*) from user where 1 != 1",
"ScatterErrorsAsWarnings": true
}
}
}

# select limit with partial scatter directive
"select /*vt+ SCATTER_ERRORS_AS_WARNINGS=1 */ * from user limit 10"
{
"Original": "select /*vt+ SCATTER_ERRORS_AS_WARNINGS=1 */ * from user limit 10",
"Instructions": {
"Opcode": "Limit",
"Count": 10,
"Offset": null,
"Input": {
"Opcode": "SelectScatter",
"Keyspace": {
"Name": "user",
"Sharded": true
},
"Query": "select /*vt+ SCATTER_ERRORS_AS_WARNINGS=1 */ * from user limit :__upper_limit",
"FieldQuery": "select * from user where 1 != 1",
"ScatterErrorsAsWarnings": true
}
}
}

# qualified '*' expression for simple route
"select user.* from user"
{
Expand Down
Loading