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

533 Коммитов

Автор SHA1 Сообщение Дата
Alain Jobart 4aa792733b Removing KeyspaceIdType from StreamKeyRange queries.
Effect is far-reaching to tabletmanager, which doesn't need to
read KeyspaceInfo any more. Cool!
2015-12-04 15:51:24 -08:00
Alain Jobart d8c0e7797d Removing the 'want_fields' flag for tm.ExecuteFetchAs*.
Defaulting it to true. Not worth the hassle.
2015-12-02 10:56:46 -08:00
Dean Yasuda 7ae3f86064 Comment PEP 0249 globals in py/vtdb/__init__.py. 2015-12-01 10:44:29 -08:00
Dean Yasuda b2fb7b6e64 Remove rest of py/vtdb/__init__.py.
Register 'gorpc' vtgate_client in test/utils.py rather than py/vtdb/__init__.py.
2015-11-30 14:41:03 -08:00
Dean Yasuda b4b780ec82 Remove py/vtctl/__init__.py.
py/vtctl/gorpc_vtctl_client.py now registers the 'gorpc' vtctl_client.

Import gorpc_vtctl_client.py to test/utils.py.
2015-11-30 11:30:29 -08:00
Dean Yasuda fd34da247b Merge branch 'master' into v2v3 2015-11-24 15:41:42 -08:00
Dean Yasuda e7bcd0480a Provide more v3 exception details. 2015-11-24 15:40:06 -08:00
Alain Jobart 6389f7bc2e Retiring logutil.LoggerEvent in favor of logutilpb.Event. 2015-11-16 08:08:18 -08:00
Dean Yasuda b7566a4109 Merge branch 'master' into v2v3 2015-11-11 15:15:23 -08:00
Dean Yasuda 3e10eec9e2 Merge vtgatev3 into vtgatev2.
* vtgatev2 will later be named vtgate_gorpc_client.
  * Pass more info to converted exceptions.
  * Clean up lint errors.
2015-11-11 15:13:23 -08:00
Anthony Yeh 06124495b4 Stop looking for mysql.host table.
The mysql.host table has been obsolete since at least MySQL 5.0:

https://dev.mysql.com/doc/refman/5.0/en/grant-table-structure.html

In recent versions, the table is no longer created for new
installations.
2015-11-10 11:41:30 -08:00
Anthony Yeh b89d988e30 Make MySQL users and privileges configurable.
This gets rid of the opaque mysql-db-dir.tbz archive, replacing it with
a .sql file. The .sql file approach makes it clear what state the DB is
initialized with, and also makes it easy to customize.
2015-11-10 11:41:24 -08:00
Alain Jobart 6751c65693 Using enumerate() in a few places where it's appropriate.
Thanks @aaijazi for the suggestion.
2015-11-09 14:23:14 -08:00
Alain Jobart b940f5278f Removing native StreamEvent, replacing it with proto3 version. 2015-11-09 09:23:29 -08:00
Alain Jobart f41a173e2d Fixing a couple details:
- grpc_vtctl_client still had deprecated lock_timeout.
- adding a test for vtctld dying on startup.
- fixing a few lint errors.
2015-11-05 09:18:53 -08:00
Alain Jobart 51be389106 Submitting changes that were already made internally. 2015-11-05 07:33:02 -08:00
Alain Jobart c7fb1dcb3c Merge pull request #1282 from alainjobart/resharding
go Session is no more, proto3 version is used now.
2015-11-05 07:08:03 -08:00
Dean Yasuda 4127f5bf41 Clean up pylint errors in 2 simple modules. 2015-11-04 19:57:06 -08:00
Dean Yasuda ca109103dd Make pylint pre-commit hook less strict.
Ignore some google-specific warnings that don't apply.

When displaying errors, print path name on each error line instead of as
a header.

Clean up a couple of python files modified while testing.
2015-11-04 19:47:34 -08:00
Alain Jobart 70df81eb83 Using proto3 TabletType in bson vtgate queries. Last use of the non-proto3
tablet type.
2015-11-04 13:38:30 -08:00
Alain Jobart 703121eb8f Removing locktimeout from vtctl protocol. 2015-11-03 11:20:12 -08:00
Dean Yasuda 8244a64166 Apply pylint to a couple more files.
This uses the new pylint pre-commit hook.
2015-11-02 16:45:37 -08:00
Dean Yasuda 9ebb500e6d Add pylint pre-commit hook.
This uses /usr/bin/gpylint; systems without gpylint will
skip this check.
2015-11-02 15:51:39 -08:00
dumbunny 5895f58345 Merge pull request #1259 from dumbunny/entity_ids
Clean up vtgatev2.py after merging entity_ids in.
2015-10-28 17:34:05 -07:00
Dean Yasuda 8b5fa5e77b Fix vtgatev2._execute logic.
vtgatev2._execute should use entity_keyspace_id_map if provided,
overriding keyspace_ids / keyranges.

Fix pylint errors.
2015-10-28 15:00:24 -07:00
Dean Yasuda a9f427d6fa Add sql_builder.NotLike where expr. 2015-10-28 11:59:37 -07:00
Anthony Yeh 0e602ee49a Merge branch 'master' into proto 2015-10-27 21:40:29 -07:00
Sugu Sougoumarane d12476e9fe proto: migrate EntityIds 2015-10-25 22:02:58 -07:00
Sugu Sougoumarane 5aa0b5c830 proto: add error handling 2015-10-24 18:10:03 -07:00
Sugu Sougoumarane 94eb00ff00 proto: misc renames
Float -> Float32
Double -> Float64
IsNumber -> IsIntegral

Also addressed some code review comments.
2015-10-24 00:08:53 -07:00
Sugu Sougoumarane c5691e1cbc proto: revamp bind vars
I've done enough to get the existing unit tests to pass, but I
think they're insufficient. There also a few TODOs sprayed around.
2015-10-23 22:30:35 -07:00
Dean Yasuda c079f66739 Merge branch 'master' into entity_ids 2015-10-23 17:24:04 -07:00
Sugu Sougoumarane 6ed05d1d28 proto: int type names changed
Tiny, Long, etc. are not very understandable. I've now changed the
types to intXX, which is more intuitive.
2015-10-23 13:46:47 -07:00
Alain Jobart 477c948cc2 Using topo proto3 in tests to get tablet types. 2015-10-23 07:12:49 -07:00
Alain Jobart cff02b5c10 Removing SCHEMA_UPDATE tablet type, unusued. Re-ordering existing
types in proto3.
2015-10-23 07:12:49 -07:00
Alain Jobart 73497d2a16 Checkpoint of removing IDLE and SCRAP states. All unit tests pass,
most integration tests pass too.
2015-10-23 07:12:49 -07:00
Sugu Sougoumarane c7918063a3 New rows proto change
So far, unit tests are passing. Still need to look at clients.
2015-10-23 02:07:03 -07:00
Sugu Sougoumarane ba7921e963 changed proto enums to idiomatic upper case 2015-10-22 22:51:53 -07:00
Sugu Sougoumarane 175fcf2acc New vitess-specific types
This change defines the new types, how they are derived from
MySQL, and tests to make sure the conversions work.
2015-10-22 22:17:35 -07:00
Dean Yasuda 2fbbec7995 Merge execute_entity_ids into execute.
This merges the functions in py/vtdb/{vtgate_cursor,vtgatev2}.py.
2015-10-22 06:34:33 -07:00
Michael Berlin 8592cf7179 Only consider *.sql files when applying schema. Fail if the schema directory for a keyspace does not exist.
NOTE: Changes were already LGTM'd internally.
2015-10-20 16:50:25 -07:00
Michael Berlin 5d28adf165 Revert "Only consider *.sql files when applying schema." 2015-10-20 15:54:42 -07:00
Dominic Hamon 1be23db75f Back to exception and add more information. 2015-10-20 12:28:14 -07:00
Dominic Hamon 4ab1c1d5db Replace exception with logging.warn 2015-10-20 12:08:13 -07:00
Dominic Hamon 5deec2e205 add missing import 2015-10-20 09:53:58 -07:00
Dominic Hamon c1cbcf81d1 Only consider *.sql files when applying schema.
Also add more checks and clearer error messages.
2015-10-20 09:40:13 -07:00
Michael Berlin f625a3104e Exporting internal changes back to open-source.
NOTE: Changes were already LGTM'd internally.
2015-10-19 13:43:30 -07:00
sougou 896bc75519 Merge pull request #1211 from youtube/suguwork
v3 demo: is now self-contained
2015-10-14 12:30:19 -07:00
Sugu Sougoumarane cc20205dcc vttest, v3 demo: make vschema explicit 2015-10-14 11:54:38 -07:00
Sugu Sougoumarane e91a995c47 vttest: handle empty schema_dir case 2015-10-13 21:40:20 -07:00