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