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

7543 Коммитов

Автор SHA1 Сообщение Дата
Mike Solomon 22ae9e43ac Automated merge with https://code.google.com/p/vitess/ 2012-08-05 14:28:43 -07:00
Mike Solomon 41d016ed35 merge 2012-08-04 20:23:25 -07:00
Mike Solomon 4c4cf1cc4e limit action nodes to base 10 2012-08-04 20:21:22 -07:00
Mike Solomon 2f3ef55750 prune fixme's and add a few notes 2012-08-04 20:12:24 -07:00
Mike Solomon 2423265b11 clear up a few fixme's 2012-08-04 19:48:36 -07:00
Mike Solomon c2ef1d836d allow any non-int action node to tickle the queue to force reprocessing 2012-08-04 19:48:23 -07:00
Sugu Sougoumarane ca3b52dec2 Make vttablet serve queries and use info from my.cnf 2012-08-02 16:08:50 -07:00
Ric Szopa 219c697b7b merge 2012-08-02 12:46:37 -07:00
Ric Szopa 79b6d1d3c0 Authentication: allow more than one secret per user on the server side. 2012-08-02 12:44:06 -07:00
Ric Szopa 2327a6a7e3 Clean up makefiles. 2012-08-02 12:42:44 -07:00
Mike Solomon dc267d8b0c merge 2012-08-02 00:02:03 -07:00
Mike Solomon 5866f155cd gofmt 2012-08-01 23:51:05 -07:00
Mike Solomon 4b60fb21dc prune extra instances on zkns export 2012-08-01 23:50:51 -07:00
Ric Szopa aac30617e9 Merge Sugu's changes. 2012-07-31 15:07:54 -07:00
Ric Szopa 5107b7aeff Separate authenticated rpc server. 2012-07-31 14:42:18 -07:00
Sugu Sougoumarane 1440c2fc22 Moving config & dbconfig parsing back to vtocc.go 2012-07-31 14:37:19 -07:00
Mike Solomon 6d5220644c preserve the single-threaded nature of the action queue even when vttablet restarts. 2012-07-30 03:15:09 -07:00
Mike Solomon 249f2beba1 add skeletal CreateKeyspace command to vtctl 2012-07-28 17:39:44 -07:00
Mike Solomon b1fe0ec205 add an awk-friendly export for vtctl 2012-07-28 17:03:42 -07:00
Mike Solomon 0bfc607fd6 show error on logging failure 2012-07-28 17:02:20 -07:00
Ric Szopa 80e6d5ce84 Merging. 2012-07-25 12:06:00 -07:00
Mike Solomon aff9936d92 remove threads. who thought threads were a good idea? 2012-07-25 11:55:46 -07:00
Ric Szopa 538cc2c504 CRAM-MD5 authentication for vtocc. 2012-07-24 19:26:28 -07:00
Mike Solomon 5d9c6f5546 add lag type to trivial change group 2012-07-24 16:43:33 -07:00
Mike Solomon b01ef6ff74 fix env var for migration 2012-07-24 01:25:05 -07:00
Mike Solomon 105dafc613 migrate naming from experimental repo 2012-07-24 01:19:31 -07:00
Mike Solomon 07193feded fix paths for repository migration 2012-07-24 01:07:52 -07:00
Mike Solomon 0f2dd36be2 import packages graduating from the experimental repo 2012-07-23 22:56:17 -07:00
Mike Solomon c3c8730983 Automated merge with https://code.google.com/p/vitess/ 2012-07-23 18:01:54 -07:00
Sugu Sougoumarane e0570f33e8 mysql.go: add library init call for thread safety. 2012-07-11 17:57:03 -07:00
Mike Solomon 13e25402d6 further error cleanup - trim reply object.
fix concurrent access bug on shared data.
2012-07-08 00:33:20 -07:00
Mike Solomon d23aadd5b4 clean up error handling
simplify listener and callback registration
make test deterministic and fast
2012-07-08 00:08:33 -07:00
Mike Solomon a2837e2224 fix locking around shared state variable 2012-07-07 21:23:13 -07:00
Mike Solomon 898507dd0d fix intermittent segfault under mysql error conditions 2012-07-06 00:33:31 -07:00
Sugu Sougoumarane 2fdd372e17 Move generic server initializations into a separate package. 2012-07-03 14:32:10 -07:00
Sugu Sougoumarane f1843c18c5 New protocol for handling multi-dml updates 2012-06-21 18:28:58 -07:00
Sugu Sougoumarane ad9c110c79 flags reorg: moved some flag initializations to their respective packages.
port is now specified in the command line instead of config file.
2012-06-21 16:21:45 -07:00
Sugu Sougoumarane 93669dff3b bug fix in base64 decode 2012-06-13 12:49:51 -07:00
Shruti Patil cb08a7a9a2 Protocol change for control commands to remove the 'Database' field from it, since mysql cannot supply it for 'COMMIT'. 2012-06-11 14:14:12 -07:00
Mike Solomon acf44a3249 fix dirty read of map 2012-06-11 11:09:29 -07:00
Sugu Sougoumarane a66124fe7c Support for db name verification for row cache invalidation messages.
Also, changed DDL invalidation to expect base64 encoded strings to avoid binary snafus.
2012-06-07 14:30:41 -07:00
Ric Szopa 02115e7048 Change the license notice to be shorter and refer to the license file. 2012-06-07 11:55:06 -07:00
Ric Szopa 9376a908b1 Fix go fmt issues with umgmtping. 2012-06-06 15:30:22 -07:00
Sugu Sougoumarane 97e4e35b64 fix typo in error msg in table_info
InvalidateForDDL should allow processingin shutdown mode
2012-06-06 13:49:51 -07:00
Sugu Sougoumarane 3aee0efca2 bug fix: active pool was using the wrong time out value to poll for long running queries. 2012-05-31 15:38:39 -07:00
Sugu Sougoumarane 1e1aca93ed relog: convenience function for log levels. 2012-06-03 10:14:00 -07:00
Sugu Sougoumarane 1d55407ced parser extenstions:
- allow " for strings
- allow ` for identifiers
- allow @ for identifiers
2012-05-29 14:24:43 -07:00
Sugu Sougoumarane ba7248ed40 bug fix: honor invalidation commits while in shutdown mode. 2012-05-22 16:44:28 -07:00
Mike Solomon b10940d1a4 rename to clarify the purpose of this code 2012-05-16 12:32:24 -07:00
Mike Solomon 2a2d6ced76 rename more sensibly 2012-05-16 12:15:01 -07:00
Mike Solomon f5a0e89c1a new zk.MetaConn to abstract away choosing zk Conn by the path referenced
introduce a zk conn interface to make the code easier to update
fix a number of unit tests to preform more reliably and bring up a test zk instance
2012-05-15 17:57:14 -07:00
Mike Solomon 5d11f23016 fix whitespace trimming 2012-05-14 23:01:56 -07:00
Mike Solomon 269bded836 gofmt 2012-05-08 10:34:22 -07:00
Sugu Sougoumarane 30f0fa8f15 tabletserver: ExecuteBatch now returns a QueryResult list 2012-05-14 12:13:26 -07:00
Sugu Sougoumarane f7bb1261bb bug fix: pk column validation for row cache was incorrect. 2012-05-08 16:14:43 -07:00
Mike Solomon c09ae2edb1 change code to panic on path errors 2012-05-08 01:29:13 -07:00
Mike Solomon 957a72fe8f a lot of path refactoring, removing ad-hoc methods 2012-05-08 00:08:36 -07:00
Sugu Sougoumarane d2aaa44e35 perf bug fix: Reinitialze chunked buffer on reset so previous memory gets garbage collected. 2012-05-04 17:02:58 -07:00
Sugu Sougoumarane 6e7de66f2e added transaction support for invalidation API.
changed invalidation API to validate that strings are base64 encoded.
fixed minor dbug/vars reporting problem if vtocc could not initialize correctly.
2012-05-03 15:11:24 -07:00
Sugu Sougoumarane 16249b4972 bson marshal: Don't use Reserve for string & bytes data, they may be too long.
resurrected schema reloader. it's still needed.
readable query info error message.
remove ever-changing auto_increment info before hashing table info.
2012-05-02 23:15:49 -07:00
Sugu Sougoumarane 34e59e452f minor reporting bug fix in query cache. 2012-04-27 15:48:09 -07:00
Sugu Sougoumarane e71dcfe7c8 optimization stagte2: chunked writer for bson 2012-04-25 13:40:45 -07:00
Mike Solomon c300759629 snitch auto-registers, so don't expose that method 2012-04-25 00:09:42 -07:00
Mike Solomon 1a4eb94784 fix umgmt ListenAndServe to wait for the shutdown callbacks to execute 2012-04-24 15:09:03 -07:00
Sugu Sougoumarane 11eb137452 optimzation stage1:
- Cache & reuse field info for selects
- Optimization in QueryBson for reading
- Move the defer closure out of Execute into its own function
- Delete unused execCacheResult
2012-04-24 11:22:23 -07:00
Mike Solomon 7601970505 add tool to ping a umgmt socket - trying to debug sporadic failure of graceful restart 2012-04-23 18:52:06 -07:00
Sugu Sougoumarane 929765a059 bug fix: Handle the case of cardinality being NULL. 2012-04-17 14:52:10 -07:00
Sugu Sougoumarane 9542fa8867 roundrobin: send a few more signals to prevent Get from blocking due to resource creation failures.
thx to dmitry for finding the bug.
2012-04-16 15:39:50 -07:00
Sugu Sougoumarane 2cfad8fddf rowcache: change encoding from bson to a custom packed binary format. 2012-04-16 14:47:05 -07:00
Sugu Sougoumarane 7e1a1e4ff7 roundrobin: Revamped to handle deadlocks & race conditions.
snitch: fix panic creator.
token: Handle error of just ':' as bind var name.
sqlquery: trap random panics to log the query that caused them.
2012-04-07 16:25:47 -07:00
Sugu Sougoumarane 3d02c8ad78 support for auto-increment & default value columns in pk 2012-04-03 00:51:50 -07:00
Sugu Sougoumarane e205ecfd09 track invalidations by table 2012-04-02 21:46:00 -07:00
Sugu Sougoumarane e2e3e0ef00 copyright deviolation 2012-04-01 21:58:56 -07:00
Sugu Sougoumarane 1f39441929 rowcache: simpler, more robust, and less chatty invalidation scheme. 2012-04-01 21:56:48 -07:00
Sugu Sougoumarane 15c1443004 schema: handle case where cardinality==0
tabletserver: copy read-only subquery results before normalizing
tabletserver: add function to validate the invalidation keys
tablet_server: bug fix. was not disabling cache if pk types were invalid
2012-04-01 17:14:58 -07:00
Sugu Sougoumarane cc4d3d2878 tabletserver: InvalidateForDDL
memcache: export stats
2012-03-29 16:31:10 -07:00
Sugu Sougoumarane afb35a16ff modified ast structure to not contain nil pointers. 2012-03-28 22:34:43 -07:00
Sugu Sougoumarane 5c5695e7ec use fnv hash to generate unique prefixes for row cache
fix some tests that were failing on slow dbs
2012-03-28 14:23:04 -07:00
Sugu Sougoumarane 35229bf0c1 shorten the life of invalidation objects in memcache 2012-03-27 15:59:19 -07:00
Sugu Sougoumarane db2be9f119 skip pk row cache optimization if there's an order by clause
display query plans for query_cache stats
rowcache: limit size to 4k
2012-03-27 12:19:39 -07:00
Sugu Sougoumarane be11a853c0 sqlquery: change invalidation function to use new key encoding scheme. 2012-03-26 13:18:37 -07:00
Sugu Sougoumarane 893b05f289 execution: include pk columns to indexes for covering index queries. 2012-03-26 00:04:47 -07:00
Sugu Sougoumarane 82e589636b schema: track cardinality of index columns
parser: added support for USE INDEX syntax
execution: Improved plan printing
execution: Use cardinality for more accurate index selection
execution: Add use index to subqueries
tests: More readable exec_cases.txt
2012-03-25 22:20:08 -07:00
Sugu Sougoumarane bd24342935 memcache: bug fix on large gets
schema: disallow caching for tables with fixed length binary columns
update_stream: allow char columns in primary key
inserts: allow inserts with unspecified columns lists
more reliable ddl throttle scheme
stats: track row not found separately from misses
2012-03-24 12:57:06 -07:00
Sugu Sougoumarane db4497300d row cache: unit tests done. 2012-03-22 01:01:44 -07:00
Sugu Sougoumarane 6831be96fa rowcache: almost done! 2012-03-20 17:33:11 -07:00
Sugu Sougoumarane 69b96741f9 refactor: created new reusable pools package by pulling code out of connection pools. 2012-03-16 17:07:27 -07:00
Sugu Sougoumarane a082e88409 updated to go's new build system and weekly.2012-03-04 2012-03-11 17:53:40 -07:00
Sugu Sougoumarane 2899c45aea tabletserver: big change. Fix all unprotected reads, standardize APIs and naming conventions. 2012-03-08 15:13:53 -08:00
Sugu Sougoumarane 38d976b773 database/sql compliant go client api for vtocc 2012-03-01 00:12:27 -08:00
Sugu Sougoumarane 412916748b Remove generated files _testmain.go, and undo manual changes of test files. 2012-02-29 14:10:06 -08:00
Sugu Sougoumarane 598fad9105 Add .hgignore 2012-02-26 21:13:29 -08:00
Sugu Sougoumarane 72a862e6b3 initial source code check-in. 2012-02-24 23:30:03 -08:00