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

7543 Коммитов

Автор SHA1 Сообщение Дата
Alain Jobart 278b9ffb04 Adding internal type for SQL statements.
This is used by binlog streamer for JSON.
2017-05-01 07:37:56 -07:00
Alain Jobart 9a2dee1a34 Adding JSON support for RBR.
This is using the JSON type to echo SQL statements.
2017-05-01 07:37:56 -07:00
Sugu Sougoumarane 7a8bba253b insertID: address review comments 2017-04-29 16:12:51 -07:00
Sugu Sougoumarane b11d7de710 fix for #2804
The change preserves the insert id coming from mysql autoinc
for unsharded tables.
2017-04-29 16:12:51 -07:00
Sugu Sougoumarane dc6e9a001e v3: vsn->session 2017-04-28 14:07:58 -07:00
Sugu Sougoumarane 823a34712a v3: add more comments to v3 functions 2017-04-28 13:08:47 -07:00
Sugu Sougoumarane 53d4122329 go driver: deprecate Atomicity
Deleting the context based atomicity before anyone starts using it.
This will be replaced by future SET TTRANSACTION MODE statements.
2017-04-28 13:08:47 -07:00
Sugu Sougoumarane 7d37d6e526 go client: new Session based model 2017-04-28 13:08:47 -07:00
Sugu Sougoumarane 8e2f9642df go client session interface{} -> *vtgatepb.Session 2017-04-28 13:08:47 -07:00
Sugu Sougoumarane 65662aa954 v3: review comments: protocol change 2017-04-28 13:08:47 -07:00
Sugu Sougoumarane ea12c8f0f6 V3: new session-based protocol
This addresses #2723.

This change is essentially a new protocol for V3. Although
backward compatible, it changes the connection model.
Basically, the newer V3 features will work only if you used
the new protocol.

The new model deprecates keyspace_shard, tablet_type and options
from ExecuteRequest and moves them into the Session. This means
that the Session is generally not empty, and may be updated
by any call to Execute or ExecuteBatch, even if the statements are
not transactional. Consequently, transactional methods like Begin,
etc. are deprecated in favor of Execute("begin").

Transaction modes will now be supported by new `SET` syntax, which
will correspondingly update the Session variable.

This also makes a connection that contains a session non-multiplexable.
We'll need to resolve whether it's still worth exposing this flexibility
to the clients, and if so, how.

For now, I've updated the Go driver to use the "modern" protocol.
However, the low level rpc (Impl) continues to support the older
functions like Begin, etc. This allows us to test the legacy
functionality.

All other clients: Python, PHP and Java are currently unchanged.

Given that this is a major protocol change, it hints at a 3.0,
but the changes are 2.1 compatible with the following exceptions:

* Go driver uses the new protocol.
* vtclient binary requires `-target` instead of `-tablet-type`, etc.

All tests are passing including PHP & Java clients. In terms
of upgrade:

* PHP and Java can be upgraded by just updating the code.
* Python will probably require a brand new library. The existing
  vtdb contains way too much baggage, and it may not be worth
  retrofitting this new incompatible protocol onto what's
  currently there. I'm looking for a name. `vtdb2`, `vitessdb`?
2017-04-28 13:08:44 -07:00
Alain Jobart 42072f2124 Fixing more proto equalities. 2017-04-27 07:49:45 -07:00
Alain Jobart 842ba88838 Replacing a proto equality. 2017-04-24 14:26:06 -07:00
Bryan Beaudreault 14eb58fc31 Allow calling Open multiple times -- this is a valid use case when recovering from long slave lag, for instance 2017-04-21 16:20:08 -07:00
Bryan Beaudreault 76cefbaacd only delete the named backup 2017-04-21 16:20:08 -07:00
Sugu Sougoumarane 8456fd3739 bug: fix panic log spam
Addresses #2791
2017-04-21 09:31:41 -07:00
Alain Jobart f7ea2d37dd Do not use protos as map keys.
This will break later. The most common use was a TabletAlias. Now use
the string version instead (from topoproto.TabletAliasString()).
2017-04-19 14:17:45 -07:00
Michael Berlin 2922686060 Merge pull request #2787 from michael-berlin/vtgate_fixes
vtgate: Avoid tight loop in unit tests.
2017-04-18 21:25:58 -07:00
Bryan Beaudreault fcf2ae6f71 Retain heartbeat when the tabletserver goes to NOT_SERVING. Only Close when actually stopping 2017-04-18 21:02:15 -07:00
Michael Berlin cec0142262 vtgate: Avoid tight loop in unit tests.
Addressed code review comment in https://github.com/youtube/vitess/pull/2599.
2017-04-18 19:12:12 -07:00
Alain Jobart 2e39227623 Fixing proto comparison.
protos will soon contain hidden fields, making reflect.DeepEqual break.
2017-04-18 13:25:38 -07:00
Sugu Sougoumarane 40945aeb66 vttablet: address review comments 2017-04-14 14:41:03 -07:00
Sugu Sougoumarane 00c7c2dda0 vttablet: deprecate StrictMode in favor of RBR
StrictMode was an old flag and pretty much unsafe to turn off.
It's now been removed. Instead, if we detect that we're in RBR
mode, we use that to just pass-through queries that are otherwise
too complex.
2017-04-13 16:17:43 -07:00
Sugu Sougoumarane 90494660ce vttablet: rbr support
Addresses #2530

This change makes VTTablet recognize that MySQL is running in RBR
mode. If this mode is detected, VTTablet will not rewrite
INSERT...ON DUPLICATE KEY constructs. It will just pass them
through instead. This allows MySQL to be run with CLIENT_FOUND_ROWS
option turned on, and the returned RowsAffected will be the
same as MySQL.

Additionally, if this mode is detected, VTTablet will also
skip adding update stream comments to other DMLs because
they're unnecessary.
2017-04-13 10:55:53 -07:00
Michael Berlin cf1bc31941 discovery: Remove confusing comment.
I don't see how this comment is relevant to the code or helpful in
understanding the code.
2017-04-11 15:14:48 -07:00
Michael Berlin 3177b1d249 discovery: Set "LastError" when connecting to vttablet failed.
This will surface dial errors e.g. in the vtgate status page. Before, it
would only show a tablet as "Not Serving".

See: https://github.com/youtube/vitess/issues/2761
2017-04-11 15:13:31 -07:00
Bryan Beaudreault f6672e8566 Move the reporter to the tabletmanager package, and interface using a HeartbeatLag function in Controller interface 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 2ffd1a928f add keyspaceShard to schema as primary key, and utilize that for reads and writes. use bindvars to avoid issues with keyspace names. turn off binlog for initialization 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 0fc8099d3b dbconfigs is not filled out when tabletserver is constructed. Instead pass in during Init phase. Don't Open the reader when registering reporter 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 3afe6adb60 docs and use same order 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 566130f348 docs 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 3f3d1768a9 Change to using connpool instead of mysqld, now that this is managed from tabletserver. 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 92f1285473 Use ticker instead of context and loops. Move lifecycle management into tabletserver. Move table init from Open to new Init function. Update tests 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 4dfa67e0c4 Some final cleanup 2017-04-07 10:53:25 -07:00
Bryan Beaudreault fbe21139db dot 2017-04-07 10:53:25 -07:00
Bryan Beaudreault f4a10190a0 Expose connpool.MySQLChecker and use that everywhere instead of everyone re-declaring 2017-04-07 10:53:25 -07:00
Bryan Beaudreault f3093c7ca2 Simplify isMaster checks. Remove unnecessary master verification. Cleanup as a result 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 9e6109ae43 some refactoring for less time-sensitive tests 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 9fab5141c4 Make Open/Close reentrant. Add reader_test 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 796206d546 Rename HeartbeatLagNs to HeartbeatLagNsCount so it's more obvious that it's a cumulative counter 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 63e9e6d8e9 Comment tweaks 2017-04-07 10:53:25 -07:00
Bryan Beaudreault e4747bd9bd Initial tests for heartbeat writer 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 6c8187518d A bit more cleanup. Add a separate counter for read errors vs write errors 2017-04-07 10:53:25 -07:00
Bryan Beaudreault d6e0f6603e Separate reader from reporter, simplify metrics, other review comments 2017-04-07 10:53:25 -07:00
Bryan Beaudreault f78ac2933e handle err 2017-04-07 10:53:25 -07:00
Bryan Beaudreault c0dade1936 Initialize the tables in the goroutine to accoutn for situations such as a brand new semi-sync master with no slaves yet. Some other refactor 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 1ca912033d Some cleanup, and use db pool in writer 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 792d25a316 Utilize close 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 449f55b428 Clean up and document code 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 9fbc721cbd recycle after successful checkout 2017-04-07 10:53:25 -07:00
Bryan Beaudreault ec4196b854 wrong function 2017-04-07 10:53:25 -07:00
Bryan Beaudreault c1d0967432 exit on successful init. add counter for reads. fix format string 2017-04-07 10:53:25 -07:00
Bryan Beaudreault d03cfcdd9d fix tablet type check 2017-04-07 10:53:25 -07:00
Bryan Beaudreault f2d37b736b Learn about tablet type changes through the event listener 2017-04-07 10:53:25 -07:00
Bryan Beaudreault f95cc67d52 Break up reader and writer of heartbeat package so that reading happens within a healthcheck 2017-04-07 10:53:25 -07:00
Bryan Beaudreault 0232f08946 Initial commit of heartbeat 2017-04-07 10:53:25 -07:00
Sugu Sougoumarane 261a9e3fb2 tabletserver: ERServerShutdown->UNAVAILABLE
BUG=36810453
2017-04-05 13:41:56 -07:00
Alex Charis feb4ad5bf8 addressing review comments:
- increased test coverage
 - revert route to pre-union-shenanigan state
2017-04-03 16:48:48 -07:00
Alex Charis 6ccff82adb add tests for order by and limit on unions, handle those constructs in unsharded unions 2017-04-03 16:48:48 -07:00
Alex Charis bb1277f24d remove cross-shard union; fix up tests 2017-04-03 16:48:48 -07:00
Alex Charis 39355c3bb3 increased test coverage 2017-04-03 16:48:48 -07:00
Alex Charis 31e7a37356 trivial: test fixup
initial WIP union commit

WIP: non-compiling, known not done; before branch for planbuilder.route.Select->SelectStatement type change

WIP checkpoint

WIP checkpoint...compiles

WIP on merge primitive

trivial test fix

support UNION in subqueries

preliminary tests

tests, responses to PR comments

copy queryConstruct to avoid data race

added tests for unsharded union

union distinct in unsharded cases; default in switch in from.go
2017-04-03 16:48:48 -07:00
Michael Berlin 612e6f82f2 Merge pull request #2726 from michael-berlin/java_rename
Move all Java code under io.vitess.*.
2017-03-31 16:46:47 -07:00
Alex Charis 7b3db6257a use select_expression_list for match/against 2017-03-31 12:21:47 -07:00
Alex Charis f7ada4bcdd add test for match(qualifier.column)
modify parser to handle this case by creating a type for list of ColName
(rather than list of ColIdent, which has no qualifier)
2017-03-31 12:21:47 -07:00
Michael Berlin 51dab81269 Allow to not send out the logStats e.g. to various plugins.
We use this functionality to not send the log stats for the beginWaitForSameRangeTransactions() method.

NOTE: This is an automated export. Changes were already LGTM'd internally.
2017-03-30 20:30:46 -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
Alain Jobart b43b6bed55 Refactoring dialog plugin code a bit.
Mainly moving all related code in one place, and adding a unit test.
2017-03-30 08:21:48 -07:00
Alain Jobart 109a007758 Merge pull request #2710 from alainjobart/auth
Adding AuthServer support for dialog.
2017-03-30 07:58:16 -07:00
Bryan Beaudreault a2b145f8cb tweaks to work with dialog 2017-03-30 10:40:54 -04:00
Bryan Beaudreault dd63f30a32 Add flags for configuring ssl in vtgate mysql plugin 2017-03-29 14:52:55 -04:00
Alain Jobart d33b929e34 Adding AuthServer support for dialog.
Mostly the refactoring of the AuthServer interface is in here. There is
no real test for the dialog plugin method.
2017-03-29 11:38:49 -07:00
Michael Berlin 53bb130a97 Merge pull request #2706 from michael-berlin/schema_fix
web/vtctld2: Fix missing zero values in schema view e.g. for "# Rows".
2017-03-29 09:37:45 -07:00
Michael Berlin 14afc18998 web/vtctld2: Fix missing zero values in schema view e.g. for "# Rows".
I fixed this by changing the JSON marshaller of the vtctl commands: For
protobuf messages we now use the "jsonpb" package which supports
emitting fields with zero values.

We already used this approach in the vtctld API endpoints. I've moved
the code to the "vtctl" package to make it more generic.

A drawback of this approach is that it doesn't cope well with our *Info
objects e.g. ShardInfo because the type switch recognizes them as
proto.Message and they have unexported fields which let jsonpb panic. To
work-around this, I've changed the vtctl code to marshal only the
embedded protobuf message and not the full *Info object anymore.
2017-03-29 09:37:16 -07:00
Michael Berlin 26a4b33cab Merge pull request #2698 from michael-berlin/hotrow_url
vttablet: Fix mentioned hot row protection debug URL in comments.
2017-03-29 09:09:58 -07:00
Michael Berlin eb8a9a8ea5 Merge pull request #2700 from michael-berlin/hotrow_change_timeout
vttablet: Hot Row protection: Use longer timeout when limiting the wait.
2017-03-29 09:09:50 -07:00
Michael Berlin 21a7fa96c5 Merge pull request #2696 from michael-berlin/vtclient_hammer
vtclient: Allow to run queries repeatedly and in parallel (-count, -parallel).
2017-03-29 09:09:38 -07:00
Alain Jobart 54d19dd243 Merge pull request #2639 from HubSpot/auth-server-ldap
WIP: AuthServerLdap
2017-03-29 07:56:01 -07:00
Sugu Sougoumarane 7ee4eb8c99 parser: allow more UNION constructs
The previous parser changes explicitly disallowed constructs like:
SELECT...LIMIT UNION...

However, it turns out that 'some' people are using it. This change
accomodates such constructs without breaking the integrity of the
grammar.
2017-03-28 22:07:31 -07:00
Michael Berlin 1b2fc6d4ec utils: Fix golint warnings and gofmt the file. 2017-03-28 18:35:07 -07:00
Michael Berlin 6857421302 vttablet: Hot Row protection: Use longer timeout when limiting the wait.
With this change, we'll use the (potentially longer) -queryserver-config-query-timeout and not -queryserver-config-txpool-timeout (defaults to 1s) to limit the waiting.

This fixes the problem that waiting requests can fail too early with the error "deadline exceeded".
2017-03-28 18:21:42 -07:00
Michael Berlin 1530cca70e vttablet: Fix mentioned hot row protection debug URL in comments.
It's /debug/hotrows and not /hotrows.
2017-03-28 18:13:21 -07:00
Michael Berlin fa98349ea3 vtclient: Log number of errors broken down by error code.
Also log the first error per error code.

I've also changed the behavior of the multi DML mode to continue executing more queries and not returning early if an error occurs.
2017-03-28 18:04:21 -07:00
Michael Berlin fe194747d7 vtclient: Add flags -parallel and -count to run queries repeatedly and in parallel.
This is useful for simple load testing.
2017-03-28 18:04:21 -07:00
Michael Berlin d6a6a0ffb4 vtclient: Add unit test based on "vttest" package.
vttest will start an actual MySQL instance and the vtcombo binary.

Then the test runs various queries and verifies that the number of rows affected is correct.

Due to the external processes, this test takes ~8 seconds to run.

This required several vtclient changes:
- return error instead of using exit.Return(1)
- enhanced "results" struct and always return it now
- moved DML logic into separate function and changed it to return a "results" as well
- moved non-DML logic into a function as well
2017-03-28 18:04:21 -07:00
Michael Berlin f791b77ccb vttest: Add VSchema() option.
The new option can be used to write unit tests with a specific vschema.

I also refactored the handling of the --schema_dir parameter and added the value as field to the Handle object because VSchema() needs to access it as well.
2017-03-28 18:04:15 -07:00
Michael Berlin c12f03892f vttest: Provide Handle method "VtgateAddress".
This makes it easier to access vtgate in other tests.
2017-03-28 17:36:36 -07:00
Michael Berlin 18df41f909 vtclient: Replaced custom isDml() function with new sqlparser function. 2017-03-28 17:36:36 -07:00
Michael Berlin 303d15307d vtclient: Add examples in usage. 2017-03-28 17:36:36 -07:00
Michael Berlin aa3f2200f5 vtclient: Fail if more than one positional argument is specified.
Before this change, a user could provide flags *after* the query and these would be ignored by the code. Now, the user gets an error and can fix the call.
2017-03-28 17:36:36 -07:00
Michael Berlin 25880fa58b vtclient: Fix execution of DMLs.
The transaction object was not used. This is probably a regression which
was introduced with the Go 1.8 vitessdriver changes.
2017-03-28 17:36:36 -07:00
Alex Charis c1f66aed03 limit auth server none functionality to a real pass-through instead of using it for tests as well
return auth server static to the mysqlconn package; the functionality is still compile-type plugin controlled
2017-03-28 19:18:51 -04:00
Alex Charis 527b46adf4 make auth server none only reject 'bad' 2017-03-28 18:30:21 -04:00
Alex Charis aa7aea031b fix travis 2017-03-28 18:10:42 -04:00
Alex Charis 8f54293bd6 refactor auth server ldap and auth server static both to be plugins
also cut tests over to use auth server none

"go test ./go/mysqlconn" doesn't pass on my machine(on master even), so this commit is to trigger travis
2017-03-28 15:51:03 -04:00
Bryan Beaudreault 12a8e44cb4 bytes equal instead of compare 2017-03-28 11:41:24 -07:00
Bryan Beaudreault 811c835aaf refresh for all. remove hash 2017-03-28 11:41:24 -07:00
Bryan Beaudreault dbc82eafe3 enable refreshing config on restart 2017-03-28 11:41:24 -07:00
Bryan Beaudreault 7d1e4cc649 test for the my.cnf file instead of just the tablet dir 2017-03-28 11:39:30 -07:00
Bryan Beaudreault 80e0cc41bf Allow specifying the subdir to use for vttablet 2017-03-28 11:39:30 -07:00
Michael Demmer 8aa8fd0039 truncate long queries in the querylogz debug page 2017-03-28 11:37:15 -07:00
Michael Demmer e8061046f6 add testcase for string truncation in debug output 2017-03-28 11:37:15 -07:00
Michael Demmer 21a1242c48 truncate long sql queries when marshalling to json 2017-03-28 11:37:15 -07:00
Michael Demmer 42ceb4b066 truncate long sql queries in the various vttablet debug UIs 2017-03-28 11:37:15 -07:00
Alain Jobart e35ed7f4e3 Merge pull request #2542 from lvxin1986/patch-2
Update zksrv.sh
2017-03-28 11:24:27 -07:00
wangyipei01 714e53e36b Merge branch 'master' into fix-bug-resharding 2017-03-27 17:23:47 -07:00
Yipei Wang 17e23979d7 workflow: fix several bugs.
1) fix typos in local env tutorial. Add the doc to left-menu
2) fix bug in error handling for vtworker's tasks
3) fix data racing issue in node.go

BUG=36510237
2017-03-27 17:18:48 -07:00
Bryan Beaudreault b54ac737ff vtgate: Support "keyspace:shard" as database name in queries. (#2685) 2017-03-28 01:03:47 +02:00
wangyipei01 f95fa5a765 Merge pull request #2641 from wangyipei01/canary
workflow: resolve readability comments for canary feature.
2017-03-27 13:26:14 -07:00
Bryan Beaudreault 38f77bbae9 Support simple START TRANSACTION 2017-03-27 13:19:41 -07:00
Bryan Beaudreault 75604df139 Support CREATE OR REPLACE VIEW 2017-03-27 13:19:41 -07:00
Bryan Beaudreault b1f2f00017 Support TRUNCATE 2017-03-27 13:19:41 -07:00
Bryan Beaudreault bb823933e6 tests for rename index 2017-03-27 13:19:41 -07:00
Bryan Beaudreault d00badaab5 RENAME INDEX and RENAME AS 2017-03-27 13:19:41 -07:00
Bryan Beaudreault 2c0120bd9c Add OPTIMIZE 2017-03-27 13:19:41 -07:00
Bryan Beaudreault 991f318ffe Add REPAIR 2017-03-27 13:19:41 -07:00
Bryan Beaudreault 3257d4b920 Add support for ALTER TABLE foo CONVERT 2017-03-27 13:19:41 -07:00
Michael Demmer 1d59dcfaf4 remove verbose command and connection logging 2017-03-27 11:37:22 -07:00
Sugu Sougoumarane bcda38b57a parser: more INSERT constructs
This change allows you to use parenthesized selects in insert
statements, which also includes selects in unions:
insert into a (select * from t)
insert into a(b, c) (select * from t)
insert into a (select * from t1) union (select * from t2)

This change also resolves the shift/reduce conflict introduced
by the previous change.
2017-03-27 10:14:08 -07:00
Sugu Sougoumarane 0fc4ef137f parser: improved UNION constructs
This change allows two extensions to the SQL syntax:
1. UNION statements can be followed by ORDER BY, LIMIT and LOCK clauses.
2. SELECT statements that are part of a UNION can be parenthesized.

The main purpose of allowing parenthesis for selects was to
support the following two constructs: (SELECT...) UNION (SELECT...)
and INSERT INTO a (SELECT...).

The initial approach was to allow parenthesizing of all SELECT
statements. However, just adding that as an additional rule
created conflicts. In particular, `((SELECT * FROM t))` could
be seen as a subquery with a parenthesized select, or a row
tuple with a subquery. We've avoided this conflict by allowing
parenthesis only for selects that are part of a union.

This change allows you to do the UNION construct. Additionally,
we go one step further and allow ORDER BY and LIMIT clauses
for unions which we didn't allow before. The tabletserver
planbuilder has also been extended accordingly. VTGate
support of unions will also need to be extended.

The construct for inserts will be addresed in the next PR.

If necessary, we could allow the top level statement to be
parenthesized, but that has no practical value. So, we can
skip that for now.

For now, the current grammar has 1 shift/reduce conflict, which will
be resolved once the support for the INSERT...(SELECT...) is added.
2017-03-27 10:14:08 -07:00
Alain Jobart a79d0dc05c Merge pull request #2669 from alainjobart/cleanup
Removing 2 unused libraries.
2017-03-27 06:48:12 -07:00
Sugu Sougoumarane 1537907b95 v3: normalize_queries defaults to true 2017-03-24 09:49:16 -07:00
Alex Charis fabaa58ae3 fixup protobufs 2017-03-24 12:13:09 -04:00
Alex Charis 66d470cd45 fixup for auth_server_none pulled in from rebasing onto master 2017-03-24 10:23:33 -04:00
Alex Charis 573aaf573d refactor LDAP-backed ACLs
vtgate now gets the groups and sends them in the immediate caller id.
we store the time of the ldap query and refresh (in another goroutine) if
older than configurable threshold. this happens upon ComQuery. the simpleacl
implementation is now group aware, and the ldapacl plugin has been removed.
2017-03-24 10:06:47 -04:00
Alex Charis 801f8b6a97 implemented ldap backend for vttablet ACLs as a plugin
refactored ldap connection as a library
trivial change to testlib
2017-03-24 10:04:07 -04:00
Alex Charis 1418695b7c test use of ldap client via mock 2017-03-24 10:04:07 -04:00
Alex Charis b631a690ba added mysql server auth ldap config json example file 2017-03-24 10:04:07 -04:00
Alex Charis efbc4ad70d *TLS support in auth_server_ldap
*also take parameters on commandline instead of only in file
2017-03-24 10:04:07 -04:00
Alex Charis 6a0d3738a0 *initial AuthServerLdap impl
*rename AuthServerConfig to AuthServerStatic
2017-03-24 10:04:07 -04:00
Sugu Sougoumarane 0d01bb7700 vttablet endtoend: deflake message_test (#2667)
BUG=36545444
2017-03-23 14:36:04 -07:00
Alain Jobart 39eeaecca0 Removing 2 unused libraries. 2017-03-23 12:52:14 -07:00
Bryan Beaudreault 8dfbc3f3d8 Support fulltext and spatial indexes in DDL language (#2665) 2017-03-23 12:46:38 -07:00
Michael Berlin 2e2b206309 sqlparser: Remove accidentally committed test binary. 2017-03-23 19:35:07 +01:00
Alain Jobart 783fed139f Merge pull request #2664 from alainjobart/topo
Making some topo code more readable.
2017-03-23 11:33:30 -07:00
Sugu Sougoumarane b78c9ed1a7 v3 keyrange: more review comments. 2017-03-23 11:32:42 -07:00
Sugu Sougoumarane 72dec1e719 v3 keyrange: keyspace/shard format 2017-03-23 11:32:42 -07:00
Sugu Sougoumarane 5ffd9d5c95 v3 keyrange: address more review comments 2017-03-23 11:32:42 -07:00
Sugu Sougoumarane 61b190cf42 v3 keyrange: address code review comments 2017-03-23 11:32:42 -07:00
Sugu Sougoumarane 021fbe0801 v3 keyrange: proto keyspace->keyspace_shard 2017-03-23 11:32:42 -07:00
Sugu Sougoumarane 5dedb90ac1 v3: autocommit support 2017-03-23 11:32:42 -07:00
Sugu Sougoumarane 1403c1409b v3: Execute handles transaction statements
Also, ExecuteBatch is refactored to use Execute and transitively
support transaction statements.
2017-03-23 11:32:42 -07:00
Sugu Sougoumarane 803ec656d6 v3: support keyspace:shard in request 2017-03-23 11:32:42 -07:00
Sugu Sougoumarane 5aa4c04f43 mysqlconn: add authServerNone for easier testing
The authServerNone config lets you connect using no username & password
which is convenient for testing and demos. The example demo has been
changed to use this feature. This will allow people to just connect
to vtcombo using mysql and run ad-hoc queries.
2017-03-23 11:32:42 -07:00
Alain Jobart 0f58c4f20d Making some topo code more readable.
I can't wait until I can merge these 3 copies of the same thing into
one.
2017-03-23 10:42:49 -07:00
Michael Berlin 46c16a80a8 Merge pull request #2662 from michael-berlin/vtworker_fix
vtworker: Fix throttler panic when SplitClone fails.
2017-03-23 18:38:27 +01:00
Michael Berlin 8202c5a6cb worker: Cancel context after test execution is done.
This way any stray Go routines will be terminated before the test method finishes.

I needed this change to manually reproduce a problem where a bug did not cancel the context in case of an error.
2017-03-23 17:20:19 +01:00
Michael Berlin cadc5ce73e worker: Fix throttler panic when SplitClone fails.
There was a race where the throttlers were closed before ThreadFinished() on each throttler was called.

Therefore, ThreadFinished() did panic. This crashed vtworker and hid the actual error why SplitClone failed.
2017-03-23 17:13:30 +01:00
Alain Jobart e7f2af8bb8 Merge pull request #2650 from alainjobart/rbr
Rbr: adding test with real DB, fixing problems.
2017-03-23 08:46:33 -07:00
Alain Jobart 087d429d83 Addressing review comments: using fmt.Fprintf. 2017-03-23 07:14:53 -07:00