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
279 commits
Select commit Hold shift + click to select a range
5bf7524
v3: fix regression in aggregate handling
sougou Sep 2, 2017
0514eeb
java changes as per vtgate implementation
harshit-gangal Sep 3, 2017
d1cf4ee
bug: reset all sequences when mastership is lost
sougou Sep 2, 2017
fc4674f
Merge pull request #3058 from tirsen/jontirsen/2017-08-14/use-reset-s…
sougou Sep 3, 2017
76f5575
Merge pull request #3052 from HubSpot/configurable_default_timeout
sougou Sep 3, 2017
70855dc
fixed jdbc tests
harshit-gangal Sep 3, 2017
32ce732
Merge pull request #3128 from sougou/seq
sougou Sep 3, 2017
928628f
resolved merge conflict
harshit-gangal Sep 3, 2017
22a842f
modify healthcheck update logs to include concise tablet / target ide…
demmer Sep 4, 2017
71bde3b
fix warning message when tablet doesn't have sufficiently new timestamp
demmer Sep 4, 2017
cd99788
add comment as suggested by @sougou
Sep 4, 2017
e4dd36b
Merge pull request #3047 from slanning/patch-1
sougou Sep 4, 2017
afe293b
v3: aggregate regression: address review comments
sougou Sep 4, 2017
6c462c9
Merge pull request #3131 from tinyspeck/logging-cleanup
sougou Sep 4, 2017
f627c31
Merge pull request #3129 from sougou/aggregates
sougou Sep 4, 2017
0375d2d
fix typo
gentryx Sep 5, 2017
fbd248f
dont require autoinc columns to be in rowList
bbeaudreault Aug 25, 2017
9bd4ddd
support quoted charset in set
bbeaudreault Aug 25, 2017
cb6cf72
ignore lc_messages
bbeaudreault Aug 25, 2017
5d8121f
change to fill row with default values when row is empty
bbeaudreault Aug 25, 2017
e253629
convert to vterrors
bbeaudreault Aug 25, 2017
b94a459
must be
bbeaudreault Aug 26, 2017
a1facf6
fix handling of bit column type
sougou Sep 3, 2017
9b8977c
Merge pull request #3135 from gentryx/master
alainjobart Sep 5, 2017
c3523e8
Merge pull request #3110 from HubSpot/couple_fixes
sougou Sep 5, 2017
1306dce
travis: Temporarily disable the unit_race test on Travis.
michael-berlin Sep 5, 2017
7084913
Merge pull request #3123 from michael-berlin/hotrow_concurrency
michael-berlin Sep 5, 2017
eb98934
Merge pull request #3136 from michael-berlin/disable_race_test
michael-berlin Sep 5, 2017
d01fe93
only verify health for serving types. return 500 status in api respon…
bbeaudreault Sep 6, 2017
bc56d8a
use http.Error
bbeaudreault Sep 6, 2017
9d4dab6
lock
bbeaudreault Sep 6, 2017
26ed8da
add experimental
bbeaudreault Sep 6, 2017
b75a83e
Merge pull request #3139 from HubSpot/debug_health
sougou Sep 6, 2017
0d31ba4
use a separate mutex for handing run state vs lag data, to avoid dead…
bbeaudreault Sep 6, 2017
2042bae
Add pretty much all likely mysql errno's to constants.go and bucket i…
bbeaudreault Sep 5, 2017
db0c43a
return proper vterrors in query_engine and supporting code
bbeaudreault Sep 5, 2017
d130478
also these and remove todo's
bbeaudreault Sep 5, 2017
2c16765
use named import
bbeaudreault Sep 5, 2017
1a2cd1b
change invalid use of NOT_FOUND. dont wrap the error from build
bbeaudreault Sep 5, 2017
2223e6c
re-add special case for 1290
bbeaudreault Sep 6, 2017
996a0cc
Merge pull request #3140 from HubSpot/heartbeat_deadlock
sougou Sep 7, 2017
f12fd15
remove unnecessary (and redundant) prefixing
bbeaudreault Sep 7, 2017
07e1925
go/vitessdriver: Allow custom conversion settings
Sep 4, 2017
07e73e3
go/vitessdriver: Always enable time.Time conversion
Sep 7, 2017
5309b82
Default scripts will start 5 tablets and not 3
arthurnn Sep 7, 2017
4e6f1ac
small doc fix
arthurnn Sep 7, 2017
d3dd49c
upgrade grpc to 1.6
bbeaudreault Sep 7, 2017
d2f34fc
Merge pull request #3134 from HubSpot/more_sql_errs
michael-berlin Sep 7, 2017
dc4c395
publish site Thu Sep 7 11:22:23 PDT 2017
michael-berlin Sep 7, 2017
62271cd
Merge pull request #3144 from arthurnn/arthurnn/doc_ronly
michael-berlin Sep 7, 2017
e75e991
Merge pull request #3133 from vmg/vmg/datetime-client
sougou Sep 7, 2017
31066aa
v3: allow date/time comparison as strings
sougou Sep 7, 2017
ec89e05
vtgate/buffer: Clarify that --buffer_min_time_between_failovers is tr…
michael-berlin Sep 7, 2017
b305c28
vtgate/buffer: Clarify that higher --buffer_drain_concurrency values …
michael-berlin Sep 7, 2017
3de0c36
Add docs for vtexplain tool
Sep 7, 2017
02c6697
Merge pull request #3148 from michael-berlin/vtgate_flags_clarification
michael-berlin Sep 7, 2017
c081794
Merge branch 'master' of https://github.com/youtube/vitess
Sep 8, 2017
942c892
sqltypes: Fix outdated error message in unit test.
michael-berlin Sep 8, 2017
d13228d
sqltypes: arithmetic.go unit test: Check for error code as well.
michael-berlin Sep 8, 2017
3e72582
Merge pull request #3145 from HubSpot/grpc_16
michael-berlin Sep 8, 2017
9f4cd9c
Merge branch 'master' of https://github.com/youtube/vitess
Sep 8, 2017
67fc75f
Add fix for missing vttablet env variable. If this isn't there backup…
Sep 8, 2017
4964d5e
messages: bug: proactively drop closed connections
sougou Sep 9, 2017
8ae09d7
messages: bug: vtgate should retry ended streams
sougou Sep 10, 2017
97ac35f
Revert "vitess.io: Recolor logo with the Material Indigo palette."
sougou Sep 10, 2017
e48619e
doc: change base colors to match logo
sougou Sep 10, 2017
fb1a33a
vitess.io: add user logos and youtube video
sougou Sep 11, 2017
2a66f77
add an error code to the sql error returned when max rows is exceeded…
bbeaudreault Sep 11, 2017
407a949
add jsonutil package to implement MarshalNoEscape
demmer Sep 11, 2017
f63ad29
doc: add Axon as user
sougou Sep 11, 2017
debd2de
messages: address review comments
sougou Sep 11, 2017
746fa82
admin: update pullapprove
sougou Sep 11, 2017
a1af7ce
Merge pull request #3154 from rnavarro/add-vttablet-env-var
sougou Sep 11, 2017
d4fa1cb
Merge pull request #3161 from sougou/pullapprove
sougou Sep 11, 2017
9ced88c
use jsonutil.MarshalNoEscape in vtexplain and vtgate Plan json
demmer Sep 11, 2017
3edb12a
Merge pull request #3159 from HubSpot/max_rows_error
sougou Sep 11, 2017
935b33b
change the behavior of StripLeadingComments for -- with no newline
demmer Sep 11, 2017
b47fa6b
rework vtexplain's Run function to better handle comments
demmer Sep 11, 2017
0d0b2ef
add sandboxconn hook to add an executor callback
demmer Sep 11, 2017
735b24e
rework the vtexplain implementation to better simulate query flow
demmer Sep 11, 2017
f2faaed
rework vtexplain tests
demmer Sep 11, 2017
23d53b5
Merge pull request #3155 from sougou/messages
sougou Sep 11, 2017
e62dec6
messages: fix second part of vttablet bug
sougou Sep 11, 2017
cc7929e
on periodic tablet refresh, handle keys which change alias
bbeaudreault Sep 10, 2017
c115f91
test
bbeaudreault Sep 12, 2017
cf1c666
bootstrap.sh: NB_CORES check: Use spaces instead of tabs.
michael-berlin Sep 12, 2017
252e46c
add an endpoint for serving the discovery gateway's cache status
bbeaudreault Sep 12, 2017
41f447b
Merge pull request #3167 from michael-berlin/fix_format
michael-berlin Sep 12, 2017
d2e2882
Merge pull request #3163 from sougou/messages
sougou Sep 13, 2017
e5cdc74
Merge pull request #3168 from HubSpot/cache_status_api
sougou Sep 13, 2017
c5521d5
messages: better fix for vtgate retries
sougou Sep 13, 2017
c366990
bootstrap.sh: check being called from the right directory
sjmudd Sep 13, 2017
c5635cb
Merge pull request #3153 from michael-berlin/arithmetic_coverage
michael-berlin Sep 13, 2017
f407e39
Merge pull request #3072 from harshit-gangal/jdbcV3
sougou Sep 13, 2017
bad3f77
initial WIP
Aug 24, 2017
026be08
working as expected; tests incoming
Aug 25, 2017
f71065b
downcase b/c postel's law
Aug 25, 2017
d3d8b06
use EqualFold
Aug 25, 2017
a8e5f13
Revert "downcase b/c postel's law"
Sep 13, 2017
8aeedba
add mysql schema to list of system schemas
Sep 13, 2017
c8453ae
doc: address review comments
sougou Sep 12, 2017
ef568c4
publish site Wed Sep 13 16:03:02 PDT 2017
sougou Sep 13, 2017
7a07e8d
Merge pull request #3157 from sougou/doc
sougou Sep 13, 2017
3cedfba
Merge pull request #3109 from HubSpot/info-schema-insensitive
sougou Sep 14, 2017
6bd5db0
Merge pull request #3176 from sjmudd/bootstrap.sh_check
sougou Sep 14, 2017
980160f
Update topology_watcher.go
bbeaudreault Sep 14, 2017
2f0ce41
messages: address review comments
sougou Sep 13, 2017
3091674
v3: bug: detect unreferenceable order by correctly
sougou Sep 14, 2017
1cdb1f3
Merge pull request #3172 from sougou/messages
sougou Sep 14, 2017
a99511e
Merge pull request #3166 from HubSpot/replace_tablet_cache
sougou Sep 14, 2017
36cb711
Merge pull request #3179 from sougou/bugs
sougou Sep 14, 2017
7d48d2a
Set 777 permissions to unix socket
Sep 14, 2017
65e6952
vitess.io: Remove /about.html page because it was never used.
michael-berlin Sep 14, 2017
85f0f4d
publish site Thu Sep 14 16:49:57 PDT 2017
michael-berlin Sep 14, 2017
6931298
Merge pull request #3181 from michael-berlin/remove_about
michael-berlin Sep 14, 2017
fdc334a
another minor rework to vtexplain
demmer Sep 15, 2017
b1845fc
Merge pull request #3180 from tinyspeck/set-proper-permissions-mysql-…
sougou Sep 15, 2017
41c81c6
vitess.io: Change URL format from "$page.html" to $page/.
michael-berlin Sep 14, 2017
ec1d69a
publish site Fri Sep 15 13:36:20 PDT 2017
michael-berlin Sep 15, 2017
6087278
Merge pull request #3183 from michael-berlin/change_to_pretty_links
michael-berlin Sep 15, 2017
f78eb4b
vitess.io: Allow scripts to be run from any current working directory.
michael-berlin Sep 15, 2017
6bd4a6b
Merge pull request #3185 from michael-berlin/vitess_io_allow_scripts_…
michael-berlin Sep 15, 2017
52ff8b0
Use jekyll-seo-tag
derekperkins Sep 15, 2017
c5065d1
vitess.io: _config.yml: Combine the two "plugins" sections.
michael-berlin Sep 15, 2017
6f9a006
vitess.io: Remove <title> tag from template because the SEO plugin ge…
michael-berlin Sep 15, 2017
556153d
publish site Fri Sep 15 14:09:20 PDT 2017
michael-berlin Sep 15, 2017
62e001b
Merge pull request #3184 from derekperkins/seo-gem
michael-berlin Sep 15, 2017
068638a
vitess.io: title and description tweaks
derekperkins Sep 13, 2017
5538c83
publish site Fri Sep 15 14:37:39 PDT 2017
michael-berlin Sep 15, 2017
d4c3bd9
Merge pull request #3186 from derekperkins/seo
michael-berlin Sep 15, 2017
9cc678d
vitess.io: Add the Gemfile.lock to Git as well.
michael-berlin Sep 15, 2017
da7916d
Merge pull request #3187 from michael-berlin/add_bundle_lock_file
michael-berlin Sep 15, 2017
e0e615c
bug: fix failing test: exporting from internal fix
sougou Sep 16, 2017
6cf14db
Merge pull request #3188 from sougou/export
sougou Sep 16, 2017
b309e42
fix vtexplain cmd build to match recent refactoring
demmer Sep 18, 2017
bdaafe0
Merge pull request #3147 from sougou/datetime
sougou Sep 18, 2017
9c2dba1
tableacl: Better comment the code to make it easier to read it.
michael-berlin Sep 19, 2017
c36b040
Makefile: Do not run tests if no target is specified.
michael-berlin Sep 19, 2017
29e36bf
publish site Mon Sep 18 20:40:40 PDT 2017
michael-berlin Sep 19, 2017
e77d7b5
vttablet: txthrottler: Fix paths for generating the mocks.
michael-berlin Sep 19, 2017
244b93d
vttablet: txthrottler: Move go:generate commands to the top of the fi…
michael-berlin Sep 19, 2017
dcc8910
vendor: Update the "gomock" version.
michael-berlin Sep 19, 2017
ea50e79
vttablet: txthrottler: Update generated mocks using the latest mockge…
michael-berlin Sep 19, 2017
91de890
rework terse errors to always log the mysql error locally
demmer Sep 19, 2017
5288384
truncate the combination of sql + bind vars instead of individually
demmer Sep 19, 2017
bc6cdba
Messaging: Export messaging queue delay
janneku Sep 15, 2017
0ae6306
Merge pull request #3162 from tinyspeck/vtexplain-improvements
sougou Sep 19, 2017
ae71b34
Merge pull request #3197 from janneku/messaging
sougou Sep 19, 2017
a563a68
rework error formatting as per PR feedback
demmer Sep 19, 2017
d2b1212
Merge pull request #3199 from michael-berlin/make_should_not_run_tests
michael-berlin Sep 19, 2017
a006b02
Merge pull request #3198 from michael-berlin/table_acl_comments
michael-berlin Sep 19, 2017
db8f885
Merge pull request #3200 from michael-berlin/tx_throttler_mock_fix
michael-berlin Sep 19, 2017
d1087cf
Update VtExplain.md
rafael Sep 19, 2017
43a1d75
test: Disable mysql_server_test on Travis CI.
michael-berlin Sep 19, 2017
b6b5856
Merge pull request #3205 from michael-berlin/temp_disable_mysql_serve…
michael-berlin Sep 19, 2017
108dbd4
travis: Temporarily disable "unit" and "mysql_server_test" on Travis.
michael-berlin Sep 19, 2017
5e0a5e2
Merge pull request #3206 from michael-berlin/unbreak_travis
michael-berlin Sep 20, 2017
167f91f
Merge pull request #3201 from tinyspeck/vttablet-logging-improvements
sougou Sep 20, 2017
f7274f6
test: Remove e2e tests for old, obsolete resharding automation.
michael-berlin Sep 20, 2017
34fa2f3
Quote vindex names in some error messages where they might be empty
sjmudd Sep 20, 2017
990e8c9
Merge pull request #3212 from sjmudd/vindex_messages
sougou Sep 20, 2017
4b94753
Fixing race condition in discovery test.
alainjobart Sep 20, 2017
d2d598c
messages: make postpone synchronous and throttled
sougou Sep 19, 2017
80a5d4b
Merge pull request #3213 from alainjobart/disco
sougou Sep 20, 2017
9ac6edb
Merge pull request #3209 from michael-berlin/remove_automation_tests
michael-berlin Sep 20, 2017
f2e8b21
Merge pull request #3207 from sougou/messages
sougou Sep 20, 2017
b0730e5
bug: fix broken unit tests
sougou Sep 20, 2017
2a2ea4d
Merge pull request #3215 from sougou/export
sougou Sep 20, 2017
8b1cd5f
Merge pull request #3204 from tinyspeck/vtexplain-docs
sougou Sep 20, 2017
374a36d
Clean up mysql socket file after a hard crash
Sep 21, 2017
e4ef1dd
Test should match description
Sep 21, 2017
6614d0c
Clean up tests
Sep 21, 2017
eff28ca
Add 'SET collation_connection' to the ignore list
Sep 21, 2017
b03e587
travis: Run tests within our "mysql57" bootstrap Docker image instead…
michael-berlin Sep 21, 2017
94602ab
vitess.io: Fix preview-site.sh script after upgrade to Jekyll 3.
michael-berlin Sep 21, 2017
7b0ebde
vitess.io: Make dev and "prod" Jekyll config consistent again.
michael-berlin Sep 21, 2017
e21ea72
Set Ruby version for netlify.com.
michael-berlin Sep 21, 2017
71aa3f0
vitess.io: Do not run git commit in netlify.com builds.
michael-berlin Sep 21, 2017
dabf68d
Merge pull request #3221 from michael-berlin/fix_preview
michael-berlin Sep 21, 2017
9b42ea0
Merge pull request #3222 from michael-berlin/unify_jekyll_config
michael-berlin Sep 21, 2017
4737ec0
messaging: end2end tests
sougou Sep 21, 2017
c133cd2
messages: don't postpone if ids are empty
sougou Sep 21, 2017
5961410
Merge pull request #3223 from michael-berlin/netlify_fixes
michael-berlin Sep 21, 2017
689cb21
discovery: Always init a target's error counter to 0.
michael-berlin Sep 22, 2017
977d157
Merge pull request #3227 from michael-berlin/export_internal_changes
michael-berlin Sep 22, 2017
963ad9e
Updates per code review
Sep 21, 2017
2411873
Test cleanup per code review
Sep 22, 2017
f947bf9
Merge pull request #3228 from tinyspeck/test-improvement
michael-berlin Sep 22, 2017
f109d14
Bump the minimum Go version to 1.9.
michael-berlin Sep 21, 2017
1a55070
Merge pull request #3216 from tinyspeck/improve-mysql-socket-on-errors
michael-berlin Sep 22, 2017
9bb2c8a
Merge pull request #3217 from michael-berlin/travis_docker
michael-berlin Sep 22, 2017
7812d91
Merge pull request #3226 from sougou/messages
sougou Sep 22, 2017
08c09cf
Merge pull request #3220 from michael-berlin/go19
michael-berlin Sep 22, 2017
5d0ef81
Adds query cache size option to VtGate
Sep 22, 2017
f33edd4
Merge pull request #3234 from tinyspeck/feature-add-plan-cache-size-o…
sougou Sep 22, 2017
e59a4c5
test: Move "set_log_level" to environment.py such that we can overrid…
michael-berlin Sep 23, 2017
206666a
test: Fix some pylint errors.
michael-berlin Sep 23, 2017
7e99bb4
Merge pull request #3235 from michael-berlin/environment_log_level
michael-berlin Sep 23, 2017
fd96276
misc: Allow to override the location for pylint via gpylint.
michael-berlin Sep 23, 2017
852e25b
Merge pull request #3218 from guidoiaquinti/master
sougou Sep 23, 2017
87c85b6
doc: Fix links to anchors of the same page.
michael-berlin Sep 23, 2017
7db8483
publish site Sat Sep 23 11:19:36 PDT 2017
michael-berlin Sep 23, 2017
379637f
Merge pull request #3240 from michael-berlin/fix_html_links
michael-berlin Sep 23, 2017
18a5c87
Merge pull request #3236 from michael-berlin/macos_pylint
michael-berlin Sep 23, 2017
725834a
vitess.io: Upgrade jekyll-sitemap to latest version.
michael-berlin Sep 24, 2017
96e9450
publish site Sat Sep 23 22:44:25 PDT 2017
michael-berlin Sep 24, 2017
091731f
Merge pull request #3241 from michael-berlin/sitemap_upgrade
michael-berlin Sep 25, 2017
2cc00e4
Added query cache metrics
Sep 25, 2017
93b6573
Update to QueryPlanCache per code review
Sep 25, 2017
07307fd
conditionally map fields
Sep 26, 2017
0d3c9b4
add test
Sep 26, 2017
61b9c99
ParseTabletAlias: Help the user by explaining the expected format.
sjmudd Sep 26, 2017
aefbc16
Add TLS flags to vtctlclient.
alecthomas Sep 25, 2017
0c3e7c4
Merge pull request #3249 from alecthomas/aat/vtctlclient-tls
alainjobart Sep 27, 2017
9afa58f
Fixing binlog server panic.
alainjobart Sep 27, 2017
c16cc85
vtgate: Set the "keyspace" stats label for ExecuteBatch* methods if i…
michael-berlin Sep 27, 2017
42a2b13
vttablet: Integrate hot row protection for ExecuteBatch queries.
michael-berlin Sep 27, 2017
ddefde8
Merge pull request #3251 from michael-berlin/batch_label
michael-berlin Sep 27, 2017
d88b601
Merge pull request #3250 from michael-berlin/hot_row_as_transaction
michael-berlin Sep 27, 2017
8fd9c75
Merge pull request #3255 from alainjobart/binlog
alainjobart Sep 27, 2017
e757d0f
vttablet: ExecuteBatch: Do not log errors twice.
michael-berlin Sep 28, 2017
56a6e72
make show vitess_shards not fail if one keyspace is invalid
demmer Sep 28, 2017
fd9b186
skip invalid keyspaces in vtctld /api/srv_keyspace
demmer Sep 28, 2017
dc0ec6d
Merge pull request #3256 from michael-berlin/batch_stop_double_logging
michael-berlin Sep 28, 2017
038a2f2
remove addSrvKeyspace function as per mberlin's suggestion
demmer Sep 29, 2017
4afa7b4
vtctld: Add missing period in comment.
michael-berlin Sep 29, 2017
fd27b65
Merge pull request #3258 from tinyspeck/vtctld-api-srv-keyspace-skip-…
michael-berlin Sep 29, 2017
2251b21
throttler: client unit test: Register the test server before calling …
michael-berlin Sep 29, 2017
8cb339e
Merge pull request #3261 from michael-berlin/grpcthrottler_fix
michael-berlin Sep 30, 2017
d7c49cc
messages: fix deadlock
sougou Sep 30, 2017
03d62f4
remove erronoeously checked in output file
demmer Sep 30, 2017
8792445
rework a bunch of vtexplain tests
demmer Sep 30, 2017
c2234d5
add vtexplain tests for sharded upsert
demmer Sep 30, 2017
c32b1de
add vtexplain join tests
demmer Sep 30, 2017
b7b65df
Merge pull request #3263 from sougou/messages
michael-berlin Sep 30, 2017
650e2e5
Merge pull request #3264 from tinyspeck/fix-vtexplain-tests
sougou Sep 30, 2017
6463309
v3: normalizer: smarter dedup
sougou Sep 30, 2017
15b6238
v3: normalizer: address review comments
sougou Sep 30, 2017
78a54b8
Merge pull request #3257 from tinyspeck/show-vitess-shards-skip-inval…
sougou Sep 30, 2017
326d4bc
Merge pull request #3262 from sougou/normalizer
sougou Sep 30, 2017
9f30997
Merge pull request #3114 from HubSpot/field-map-indexes-upstream
sougou Sep 30, 2017
740b01e
Merge pull request #3245 from tinyspeck/add-stats-query-cache-vtgaate
sougou Sep 30, 2017
9ff9af5
Merge pull request #3248 from sjmudd/ParseTabletAlias-friendlier-message
sougou Sep 30, 2017
d37ad9b
Adds session option to cache query plans
Sep 25, 2017
bb636e8
Merge pull request #3246 from tinyspeck/add-session-option-for-query-…
sougou Oct 1, 2017
7b3549a
Moving optional RebuildKeyspace out of tests.
alainjobart Oct 2, 2017
4657600
Merge pull request #3268 from alainjobart/vttablet
alainjobart Oct 2, 2017
d09dcd9
redact out the /txlogz endpoint completely
demmer Jul 26, 2017
9114772
redact out the /debug/consolidations UI
demmer Aug 31, 2017
1dec806
redact bind variables and the full sql from /debug/querylog
demmer Oct 2, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 5 additions & 6 deletions .pullapprove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ groups:
- alainjobart
- alainjobart-bot
- AndyDiamondstein
- bbeaudreault
- demmer
- enisoc
- enisoc-bot
- erzel
- erzel-bot
- harshit-gangal
- mberlin-bot
- michael-berlin
- sougou
- sougou-bot
- thompsonja
- thompsonja-bot
- pivanof
- pivanof-bot
- sougou
- sougou-bot

1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.2.3
161 changes: 35 additions & 126 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,152 +1,61 @@
# TODO(mberlin): Travis will break this configuration on Sep 5, 2017.
# Moving off the container based infrastructure (sudo: required) may buy us more time.
# But we should move to Docker based tests eventually.
# See their announcement: https://blog.travis-ci.com/2017-07-11-trusty-as-default-linux-is-coming
dist: precise
# Use container-based infrastructure (see: http://docs.travis-ci.com/user/workers/container-based-infrastructure/).
sudo: false
# Travis CI configuration for Vitess.
#
# Note that we have our own test runner written in Go (test.go) which downloads
# our bootstrap Docker image and runs all tests within Docker.
# This solution is slower than running the tests natively, but has the
# advantage that we do not have to install (and cache) any dependencies within
# Travis itself.
#
# For the record, we expect the following overhead per Travis build:
# - 20 seconds Travis starting up the VM.
# - Up to 2 minutes to pull the Docker image.
# - More than a minute to run "make build" and cache the result as temporary
# Docker image.
#
# In total, it will always take up to 4 minutes until the environment is
# bootstrapped and the first test can be run.
#
# Open TODOs:
# - Re-add travis/check_make_proto.sh, ideally as part of test/config.json.
# - Add a presubmit which checks that vendor/vendor.json is the same as in the Docker image. This will prevent people from making changes to it without pushing new bootstrap Docker images.

# sudo is required because we run Docker in our builds.
# See: https://docs.travis-ci.com/user/docker/
sudo: required

services:
- docker

language: go
go:
- 1.8
- 1.9
go_import_path: github.com/youtube/vitess
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# NOTE: When you add a dependency, don't forget to add comment why it's necessary.
- automake
- libtool
- php5-cli
- php5-dev
- python-dev
- python-mysqldb
- python-pip
- libssl-dev
- g++-4.8
- gcc-4.8
- git
- pkg-config
- python-virtualenv
# installs libaio1 which is required by MariaDB 10.0 server package
- libaio-dev
# required by travis script below to measure CPU and memory usage
- time
# Optional dependency. Without a running syslog daemon, Vitess will keep complaining that it could not log events and spam the logs.
- rsyslog
# Cache directories of dependencies which are built by bootstrap.sh
cache:
directories:
# Cache downloaded and extracted MariaDB 10.0 packages.
- $MYSQL_ROOT
# Cache bootstrapped dependencies (e.g. protobuf and gRPC).
- $HOME/gopath/dist/etcd
- $HOME/gopath/dist/grpc/.build_finished
- $HOME/gopath/dist/grpc/usr/local
- $HOME/gopath/dist/py-mock-1.0.1/.build_finished
- $HOME/gopath/dist/py-mock-1.0.1/lib/python2.7/site-packages
- $HOME/gopath/dist/vt-zookeeper-3.4.6/.build_finished
- $HOME/gopath/dist/vt-zookeeper-3.4.6/lib
# Maven repository for Java dependencies.
- $HOME/.m2
- $HOME/.phpenv
before_cache:
# Travis CI caching doesn't work with these symlinks. Just delete them.
- rm $HOME/gopath/bin/etcd
- rm $HOME/gopath/bin/zksrv.sh
# Delete these files because they keep changing (having the latest timestamp
# of an update) and trigger a lengthy update of the cache (~25 seconds).
- rm $HOME/.m2/repository/io/vitess/*/maven-metadata-local.xml
- rm $HOME/.m2/repository/io/vitess/*/*-SNAPSHOT/*-SNAPSHOT*.jar
- rm $HOME/.m2/repository/io/vitess/*/*-SNAPSHOT/_remote.repositories
- rm $HOME/.m2/repository/io/vitess/*/*-SNAPSHOT/maven-metadata-local.xml
- rm $HOME/.m2/repository/io/vitess/*/*-SNAPSHOT/resolver-status.properties
- rm $HOME/.m2/repository/io/grpc/grpc-core/resolver-status.properties
- rm $HOME/.m2/repository/io/grpc/protoc-gen-grpc-java/*/protoc-gen-grpc-java-*.pom.lastUpdated
- rm $HOME/.m2/repository/io/netty/netty-codec-http2/resolver-status.properties
# Don't cache unnecessary PHP files.
- rm $HOME/.phpenv/versions/*/sbin/*
- rm $HOME/.phpenv/versions/*/bin/php-cgi
- rm $HOME/.phpenv/shims/php-cgi
- find $HOME/.phpenv/vendor/grpc/grpc -mindepth 1 -maxdepth 1 ! -name src | xargs rm -rf
- find $HOME/.phpenv/vendor/grpc/grpc/src -mindepth 1 -maxdepth 1 ! -name php | xargs rm -rf
env:
global:
- MYSQL_FLAVOR=MariaDB
- MYSQL_ROOT=$HOME/mysql
- VT_MYSQL_ROOT=$MYSQL_ROOT/usr
# Enable parallel compilation e.g. for gRPC.
# (The Travis CI worker is allowed to use up to 2 cores, but as of 07/2015 4 parallel compilations is actually faster.)
- MAKEFLAGS=-j4
# Run go build and test with -p 4 (i.e. up to 4 packages are compiled/tested in parallel).
# As of 07/2015 this value works best in a Travis CI container.
# TODO(mberlin): This will probably not be passed through to Docker. Verify and fix this.
- VT_GO_PARALLEL_VALUE=4
- PATH="$HOME/.phpenv/bin:$PATH"
# Note: The per test timeout must always be < 10 minutes because test.go
# does not produce any log output while running and Travis kills a
# build after 10 minutes without log output.
# 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=false -timeout=8m -print-log -remote-stats=http://enisoc.com:15123/travis/stats"
- CC=gcc-4.8
- CXX=g++-4.8
# TODO: uncomment when php crashing is fixed
# - INSTALL_GRPC_PHP="$HOME/.phpenv/lib"
- SAUCE_USERNAME=vitess
- TEST_FLAGS="-docker -use_docker_cache -timeout=8m -print-log -remote-stats=http://enisoc.com:15123/travis/stats"
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.
# We should always utilize all 5 slots because the cost of the setup is high (up to one minute).
# NOTE: Use "" if you specify a space separated list of multiple targets.
# We should always utilize all 5 slots because the cost of the setup is high (up to four minutes).
- TEST_MATRIX="-shard 0"
- TEST_MATRIX="-shard 1"
- TEST_MATRIX="-shard 2"
- TEST_MATRIX="-shard 3"
- TEST_MATRIX="-shard 4"
before_install:
- travis/download_mariadb.sh
# TODO: uncomment when php crashing is fixed
# - travis/php_init.sh
install:
# TODO: uncomment when php crashing is fixed
# - eval "$(phpenv init -)"
- ./bootstrap.sh
before_script:
- source dev.env
# Travis only tests. Run only on the first shard.
# Part of "before_script" because in "script" the job would not fail immediately if a command fails.
- |
if [[ $TEST_MATRIX = *"-shard 0"* ]]; then
travis/check_make_proto.sh
fi
# Webdriver tests are only on the last shard for non PRs. Start Sauce Connect only on this shard.
- |
if [[ $TEST_MATRIX = *"-shard 4"* && $TRAVIS_PULL_REQUEST = "false" ]]; then
tools/sauce_connect_setup.sh
fi
script:
# Log GOMAXPROCS (should be 2 as of 07/2015).
- go run travis/log_gomaxprocs.go
- |
if [[ $TRAVIS_PULL_REQUEST = "false" ]]; then
go run test.go $TEST_FLAGS $TEST_MATRIX
else
# Exclude webdriver tests on Travis PRs since the sauce addon does not work for PRs
go run test.go $TEST_FLAGS $TEST_MATRIX -exclude=webdriver
fi
after_script:
# Stop Sauce Connect at the end
- |
if [[ $TEST_MATRIX = *"-shard 4"* && $TRAVIS_PULL_REQUEST = "false" ]]; then
tools/sauce_connect_teardown.sh
fi
after_failure:
# In case of errors, output log files to make it easier to debug the error.
# List all available files.
- ls -alR $HOME/gopath/vtdataroot
# Output *.log* and *.stderr files. (Add -keep-data to TEST_FLAGS above or tests will delete their logs.)
- find $HOME/gopath/vtdataroot \( -name "*.log*" -or -name "*.stderr" \) -type f -print0 | xargs -0r --verbose --max-args=1 cat
- go run test.go $TEST_FLAGS $TEST_MATRIX
# Uncomment the next line to verify the GOMAXPROCS value (should be 2 as of 09/2017).
# - ./docker/test/run.sh mysql57 'go run travis/log_gomaxprocs.go'
notifications:
slack:
secure: S9n4rVWuEvSaF9RZUIx3Nkc2ycpM254zmalyMMbT5EmV1Xz6Zww2FL39RR5d57zsZ2M8GVW5n9uB8Bx57mr+L/wClEltzknYr7MA2/yYNMo5iK83tdQtNNw5U+dZG9/Plhlm4n883lcw9aZOyotNcLg2zBsd48Y74olk4NdmSfo=
4 changes: 3 additions & 1 deletion ADOPTERS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
This is an alphabetical list of known adopters of Vitess. Some have already gone into production, and others are at various stages of testing.

* [YouTube](http://youtube.com)
* [Axon](http://axon.com)
* [BetterCloud](http://bettercloud.com)
* [FlipKart](http://flipkart.com)
* [HubSpot](http://product.hubspot.com/)
* [Nozzle](http://nozzle.io)
* [Pixel Federation](http://pixelfederation.com)
* [Quiz of Kings](http://quizofkings.com)
* [Slack](http://slack.com)
* [Square](http://square.com)
* [Stitch Labs](http://stitchlabs.com)
* [YouTube](http://youtube.com)
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ MAKEFLAGS = -s

.PHONY: all build build_web test clean unit_test unit_test_cover unit_test_race integration_test proto proto_banner site_test site_integration_test docker_bootstrap docker_test docker_unit_test java_test php_test reshard_tests

all: build test
all: build

# Set a custom value for -p, the number of packages to be built/tested in parallel.
# This is currently only used by our Travis CI test configuration.
Expand Down Expand Up @@ -80,6 +80,10 @@ unit_test: build
unit_test_cover: build
go test $(VT_GO_PARALLEL) -cover ./go/... | misc/parse_cover.py

# TODO(mberlin): This is currently disabled in test/config.json for automatic
# runs on Travis (manual=false). Re-enable it there once we switched the Travis
# tests to using Docker and we verified that this is no longer flaky e.g. in
# doubt increase timeouts in all tests.
unit_test_race: build
tools/unit_test_race.sh

Expand Down
29 changes: 24 additions & 5 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ fi

# Run parallel make, based on number of cores available.
case $(uname) in
Linux) NB_CORES=$(grep -c '^processor' /proc/cpuinfo);;
Darwin) NB_CORES=$(sysctl hw.ncpu | awk '{ print $2 }');;
Linux) NB_CORES=$(grep -c '^processor' /proc/cpuinfo);;
Darwin) NB_CORES=$(sysctl hw.ncpu | awk '{ print $2 }');;
esac

if [ -n "$NB_CORES" ]; then
export MAKEFLAGS="-j$((NB_CORES+1)) -l${NB_CORES}"
fi
Expand All @@ -34,7 +33,7 @@ function fail() {
exit 1
}

[ -f bootstrap.sh ] || fail "bootstrap.sh must be run from its current directory"
[ "$(dirname $0)" = '.' ] || fail "bootstrap.sh must be run from its current directory"

go version 2>&1 >/dev/null || fail "Go is not installed or is not on \$PATH"

Expand All @@ -49,6 +48,24 @@ mkdir -p $VTROOT/vthook
echo "Updating git submodules..."
git submodule update --init

# Install "protoc" protobuf compiler binary.
protoc_version=3.4.0
protoc_dist=$VTROOT/dist/protoc
protoc_version_file=$protoc_dist/version
if [[ -f $protoc_version_file && "$(cat $protoc_version_file)" == "$protoc_version" ]]; then
echo "skipping protoc install. remove $protoc_version_file to force re-install."
else
rm -rf $protoc_dist
mkdir -p $protoc_dist
download_url=https://github.com/google/protobuf/releases/download/v${protoc_version}/protoc-${protoc_version}-linux-x86_64.zip
(cd $protoc_dist && \
wget $download_url && \
unzip protoc-${protoc_version}-linux-x86_64.zip)
[ $? -eq 0 ] || fail "protoc download failed"
echo "$protoc_version" > $protoc_version_file
fi
ln -snf $protoc_dist/bin/protoc $VTROOT/bin/protoc

# install zookeeper
zk_ver=3.4.6
zk_dist=$VTROOT/dist/vt-zookeeper-$zk_ver
Expand Down Expand Up @@ -268,7 +285,9 @@ selenium_dist=$VTROOT/dist/selenium
mkdir -p $selenium_dist
$VIRTUALENV $selenium_dist
PIP=$selenium_dist/bin/pip
$PIP install selenium
# PYTHONPATH is removed for `pip install` because otherwise it can pick up go/dist/grpc/usr/local/lib/python2.7/site-packages
# instead of go/dist/selenium/lib/python3.5/site-packages and then can't find module 'pip._vendor.requests'
PYTHONPATH= $PIP install selenium
mkdir -p $VTROOT/dist/chromedriver
curl -sL http://chromedriver.storage.googleapis.com/2.25/chromedriver_linux64.zip > chromedriver_linux64.zip
unzip -o -q chromedriver_linux64.zip -d $VTROOT/dist/chromedriver
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"php": ">=5.5.0",
"stanley-cheung/protobuf-php": "v0.6",
"google/auth": "v0.10",
"grpc/grpc": "v1.0.0"
"grpc/grpc": "v1.6.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading