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

323 Коммитов

Автор SHA1 Сообщение Дата
Ric Szopa 0be6c0825c Parallelize dumping tables, make split accept the empty string as a min/max key. 2012-11-19 15:25:41 -08:00
Ric Szopa c02070d8ab Use nested flagsets. 2012-11-19 15:25:29 -08:00
Alain Jobart ed66818102 Re-factoring the RPC-like action mechanism: now we save
an ActionNode, the args and the reply as three different
structures instead of one. Allows us to type the previous Args
and Result (instead of using a map[string]string).

This is not backward compatible.

LGTM Mike.
2012-11-19 14:47:37 -08:00
Alain Jobart 3f1137b418 Implementing ApplySchemaKeyspace and associated test.
LGTM Mike.
2012-11-16 11:16:48 -08:00
Sugu Sougoumarane cbffce38d5 prepwork for VM. split SqlQuery into two classes. 2012-11-15 13:47:39 -08:00
Alain Jobart 39691c94f2 Adding PruneActionLogs vtctl command, and test.
LGTM Mike.
2012-11-15 10:26:17 -08:00
Mike Solomon b4697c57d9 fix keyspace zkns export 2012-11-14 20:37:59 -08:00
Alain Jobart 2997344047 Using zk.CreateRecursive there.
LGTM Mike.
2012-11-14 14:45:15 -08:00
Alain Jobart f090e60d4e Uid is now a uint32 (from uint). And has a ParseUid function.
LGTM Mike.
2012-11-14 13:42:24 -08:00
Ric Szopa e4ca20d63c Test for Redactor. 2012-11-14 13:41:46 -08:00
Ric Szopa 1ae502e0c8 It's Redacted, not Redact. 2012-11-14 13:31:27 -08:00
Mike Solomon b7d0c9156b make PurgeActions more robust - only clean up non-running actions. 2012-11-14 13:33:11 -08:00
Mike Solomon d15f3c5e02 change CreateRecursvie to be more optimistic - better average case performance. 2012-11-14 13:32:14 -08:00
Mike Solomon 4104e14d44 fix bug when stat is nil 2012-11-14 13:18:59 -08:00
Ric Szopa 087bcd6826 Documentation for relog.Redactor. 2012-11-14 13:19:46 -08:00
Ric Szopa bdb65c58b8 JSON in sensitive data string representation. 2012-11-14 12:53:34 -08:00
Ric Szopa ece66e050e Redact away dbconfig password. 2012-11-14 12:53:32 -08:00
Alain Jobart f248c4b197 Now using Results inside ActionNode for results, and many
associated changes. Not using zk to store [partial]snapshot
results any more, but instead the Results, and fetching the
manifest through http.

LGTM Mike.
2012-11-14 12:11:23 -08:00
Alain Jobart 52fd017434 Parallel compress and fetch for clone & split. And retries for fetch.
LGTM Mike.
2012-11-14 11:23:47 -08:00
Alain Jobart b32b57ba0b Refactoring the way actions responses are sent: we now
store the responses in a actionlog directory, and delete the
action node anyway.

Still need to refactor a few things, and clean up the files.

LGTM Mike.
2012-11-12 16:47:36 -08:00
Sugu Sougoumarane a306a055f8 end to end tests for type system & some bug fixes 2012-11-12 11:53:19 -08:00
Alain Jobart 5b1b7ec2d5 Renaming ReplicaSource, and better recovery.
LGTM Mike.
2012-11-12 11:47:47 -08:00
Alain Jobart 1ed3a317b5 Adding a TYPE_SCHEMA_UPGRADE 'schema' tablet type, using it.
LGTM Mike.
2012-11-12 09:40:51 -08:00
Mike Solomon 845d28598a added a new method to list all active actions in shard 2012-11-11 21:25:21 -08:00
Mike Solomon b131ab75a1 add lag reporting to ShardReplicationPositions
sort output in a more relevant way to picking a new master during a failure
2012-11-11 18:05:03 -08:00
Mike Solomon 5f277e2e0d add a check to make sure our services don't run as root 2012-11-11 12:48:14 -08:00
Mike Solomon aec0450846 issue only a warning when initial tablet validate fails 2012-11-11 12:41:14 -08:00
Mike Solomon bb291636c7 fix the definition of slave vs replicating type 2012-11-11 12:30:47 -08:00
Sugu Sougoumarane 169f86c653 enforce strict mode & other misc fixes 2012-11-09 11:54:43 -08:00
Alain Jobart 0347ca8058 Fixing a bug in a for loop / go routine launch that shows
bad checks in Validate -ping mode.

LGTM Mike.
2012-11-09 09:21:12 -08:00
Alain Jobart 18dee8c018 First pass at ApplySchemaShard. It doesn't handle the tablet state
properly (yet!), but everything else should work.

LGTM Mike.
2012-11-08 16:42:20 -08:00
Alain Jobart f4ef9d3714 Adding a PreflightSchema operation. Using it in ApplySchema on a tablet.
LGTM Mike / Sugu.
2012-11-08 11:05:26 -08:00
Sugu Sougoumarane f677ce365a mysql: tests for QueryResult encoding 2012-11-08 10:26:36 -08:00
Mike Solomon 02e46efe9a fix lag slave handling during reparent 2012-11-07 02:57:16 -08:00
Mike Solomon 3fea3177ef support reparenting a single tablet to the last known coordinates tracked in _vt.reparent_log 2012-11-07 01:08:01 -08:00
Mike Solomon 02d9d67a70 added tools to check replication positions 2012-11-07 00:28:49 -08:00
Mike Solomon 12d2191668 take the wraps off of RebuildReplicationGraph and clean up the help a bit 2012-11-05 12:01:54 -08:00
Shruti Patil 0bbdf07041 Integration of update stream service with vtttablet using streaming rpc. 2012-11-06 17:55:59 -08:00
Sugu Sougoumarane a34c35734d bson: use reflect to check for []byte and time.Time instead of interface 2012-11-06 16:31:01 -08:00
Sugu Sougoumarane f9a139ec7d bson: more complete tests 2012-11-06 15:57:25 -08:00
Alain Jobart 1bea87ed04 Tablet ApplySchema operation. Using it in sharded.py as a test.
LGTM Mike.
2012-11-05 15:06:00 -08:00
Sugu Sougoumarane fb806cf4dc tabletserver: introduce a more formal type system 2012-11-05 14:28:37 -08:00
Mike Solomon 89dcc117bf add per-keyspace zkns export 2012-11-03 18:06:56 -07:00
Mike Solomon 5b920c9c8d move zkns export into wrangler code 2012-11-02 15:18:40 -07:00
Mike Solomon d6a606f12b refactor zkns support and improve json formatting 2012-11-02 15:03:45 -07:00
Mike Solomon 51e457785f allow ReparentShard to leave master in read-only mode for emergencies 2012-11-01 14:34:42 -07:00
Alain Jobart 10713f343d Fixing zkocc.GetV to return results in order. That should fix
intermittent failures on the unit test.

LGTM Mike.
2012-11-01 13:05:09 -07:00
Mike Solomon e5d1bcb1d3 make rebuild commands behave more consistently
RebuildKeyspaceGraph now rebuilds the constituent shards in parallel
add comments explaining other rebuild operations
2012-10-31 23:51:44 -07:00
Alain Jobart f8f59779de Fixing these tests to account for new routing code.
LGTM Sugu.
2012-10-31 15:51:14 -07:00
Alain Jobart 38ad421e31 go/Makefile moved to top, now also runs all tests by default.
LGTM Mike.
2012-10-31 15:29:41 -07:00