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

5330 Коммитов

Автор SHA1 Сообщение Дата
Anand Henry 090830a29c Replace image for SplitQuery 2015-04-28 18:08:56 -07:00
Anand Henry 439eb2e1e7 Image for SplitQuery 2015-04-28 18:06:21 -07:00
Shengzhe 332aae3e94 Merge pull request #639 from yaoshengzhe/fix_rework_enable_publish_stats
make sure queryservice not publish stats when not required
2015-04-28 15:50:06 -07:00
Shengzhe Yao cb99c724d6 make sure queryservice not publish stats when not required
1. queryservice should not publish stats if either flag EnablePublishStats
    is enabled or var name is empty.
2. stats.NewInt should call Publish if name is empty.
3. mysqlctl.NewMysqld publishes dba stats only if dbaName is not empty.
4. mysqlctl.NewMysqld publishes app stats only if appName is not empty.
5. QueryEngine publishes stats only if flag EnablePublishStats is enabled.
6. RowCacheInvalidator publishes stats only if flag EnablePublishStats is enabled.
2015-04-28 15:49:46 -07:00
Shengzhe 53fc330bd8 Merge pull request #638 from yaoshengzhe/fix_sleep_on_the_second_try_for_cachepool
sleep 100 millis for the second attempt
2015-04-28 15:49:18 -07:00
Shengzhe Yao 7f06896b6b sleep 100 millis for the second attempt
CachePool launches a memcache process, if failed, it will sleep 100 millis
before the next attempt. This slows down the unit test since a fake memcache
service is guaranteed to succeed.
2015-04-28 15:48:58 -07:00
Anthony Yeh 96fe7e75f2 Merge pull request #637 from youtube/readme
Update README.md
2015-04-28 13:38:42 -07:00
Anthony Yeh be69f63004 Update README.md 2015-04-28 13:38:00 -07:00
Alain Jobart 89bf96b90e Merge pull request #626 from youtube/replication
Replication
2015-04-28 12:51:36 -07:00
Alain Jobart 4d9ce2465c Merge branch 'master' into replication 2015-04-28 12:50:24 -07:00
sougou eb5f3b7be5 Merge pull request #482 from ynshenoy/master
Fixes to vtgatev3 for PEP 249 compliance
2015-04-28 11:48:42 -07:00
Anthony Yeh 76a98e29e9 Merge pull request #631 from youtube/docker-lite
Build lightweight Docker images for deployment.
2015-04-28 10:53:03 -07:00
Alain Jobart 35793ce605 Adding basic unit test for PlannedReparentShard. 2015-04-28 10:31:27 -07:00
Shengzhe 98a63c6359 Merge pull request #635 from yaoshengzhe/fix_remove_setdeadline_error_in_dbconn
remove error as one of return values from DBConn.setDeadline
2015-04-28 10:00:36 -07:00
Shengzhe Yao 29ceae242c remove error as one of return values from DBConn.setDeadline
By inspecting the DBConn code, it seems error returned from DBConn.setDeadline
will always be nil.
2015-04-28 10:00:15 -07:00
Shengzhe 5a17a7f058 Merge pull request #634 from yaoshengzhe/fix_improve_connpool_unit_test
impove connpool unit test
2015-04-28 09:59:57 -07:00
Shengzhe Yao 6660741a1f impove connpool unit test
1. remove old unit test rely on local mysql instance
2. add unit test using fake mysql db implementation
2015-04-28 09:07:33 -07:00
Shengzhe e919986a41 Merge pull request #633 from yaoshengzhe/fix_add_restore_trailing_test
add test case for restoreTrailing
2015-04-28 09:05:58 -07:00
Shengzhe Yao 6d3d128bae add test case for restoreTrailing 2015-04-28 09:05:31 -07:00
Shengzhe 5d290bbd03 Merge pull request #632 from yaoshengzhe/fix_codex_unit_test
improve codex unit test coverage
2015-04-28 09:03:38 -07:00
Shengzhe Yao 55c1ae101c improve codex unit test coverage
1. use TabletError for panics in resolvePKValues and resolveValue.
2. add test cases to test error scenarios.
2015-04-27 19:27:38 -07:00
Anthony Yeh a506243ded [doc] Move command output to the right place. 2015-04-27 17:18:21 -07:00
Michael Berlin 92a7984ce2 Merge pull request #618 from youtube/mysql_flags
Pass "Flags" from MySQL field from the result set e.g. to preserve if integers are unsigned.
2015-04-27 17:16:56 -07:00
Michael Berlin 08be00d4f5 Merge pull request #630 from youtube/context_err_fix
pools: Fix problem that Err() must not be called before Done was closed.
2015-04-27 17:16:15 -07:00
Anthony Yeh b2c491f7b1 Build lightweight Docker images for deployment.
The base images are meant for development, and include everything needed
to bootstrap and build Vitess.

For actual deployment, we can drop all the dev packages and just put the
binaries into a fresh image.

At this time, the savings in image size are:

vitess/base = 2.269GB -> vitess/lite = 568.4MB
vitess/etcd:v0.4.6 = 442.4MB -> vitess/etcd:v0.4.6-lite = 108.6MB

This makes Kubernetes pods start a lot faster, since each node has to
download the images.
2015-04-27 17:05:06 -07:00
Michael Berlin 7169dbfb15 pools: Fix problem that Err() must not be called before Done was closed. 2015-04-27 15:57:43 -07:00
Alain Jobart af206c9ad7 Updating comments. 2015-04-27 14:55:06 -07:00
Alain Jobart 851c044067 Merge branch 'master' into replication 2015-04-27 14:53:17 -07:00
sougou 277310c9ae Merge pull request #625 from youtube/suguwork
grace period for tx pool Begin and other misc fixes
2015-04-27 11:37:46 -07:00
Shengzhe c3b687bd1f Merge pull request #627 from yaoshengzhe/fix_querylogz_race_condition
fix querylogz test race conditions
2015-04-25 00:13:58 -07:00
Shengzhe Yao fd9685b0e2 fix querylogz test race conditions
go/streamlog/streamlog.go starts a separate go routine for each new logger instance.
In the querylogz_test.go, it tries to call logger.Send(logStats) and then assumes this
logStats has been delivered. Then it calls querylogzHandler and verifies the result.
However, it is not guaranteed the message will be delivered after Send call, because Send
just put the message into dataQueue and only the go routine delivers it to each consumers.
2015-04-24 19:42:44 -07:00
Alain Jobart 527e207f3b resharding.py now uses the new PlannedReparentShard. 2015-04-24 17:02:06 -07:00
Alain Jobart 184abfad8f Fixing tm unit tests, and shortening a constant. 2015-04-24 16:55:02 -07:00
Alain Jobart b4c2b12135 Moving code around so it makes more sense.
We don't STOP SLAVE, RESET SLAVE in InitSlave any more.
We don't use BreakSlaves on new master in InitMaster
any more, we just use a couple SQL statements to init binlogs.
2015-04-24 16:35:39 -07:00
Alain Jobart f865f43e97 Fixing merge from master, and unit test. 2015-04-24 15:59:02 -07:00
Alain Jobart a4e5068cfd Merge branch 'master' into replication 2015-04-24 15:49:32 -07:00
Anthony Yeh ab9354613a Merge pull request #623 from youtube/event
Add tabletmanager StateChange event.
2015-04-24 15:43:45 -07:00
Sugu Sougoumarane bc30358eab Fix build issue with mysql.go
Including errmsg.h causes build problems on import.
So, punting on this for now by hardcoding the error code.
2015-04-24 15:03:22 -07:00
Michael Berlin 68ddcf73ae Pass "Flags" from MySQL field from the result set e.g. to preserve if
integers are unsigned.
2015-04-24 14:59:48 -07:00
Sugu Sougoumarane e89a1b8c0a tabletserver: grace period for tx pool Begin
Under load, Begin gets occasionally called just when the context
is about to expire. In such cases, the query gets killed as soon
as it's issued. However, The Begin call itself almost never fails
because it's too fast. So, this just results in the connection
getting closed, which isn't seen until the next statement executes,
and results in a confusing 2006 error.
So, we give ourselves a 10ms grace period to make sure that we
give Begin enough time to succeed. This way, we won't see as many
confusing error messages.
2015-04-24 14:55:51 -07:00
Sugu Sougoumarane 81b8b48520 Fix race conditions in ResourcePool
There's a race condition between context and resource pool.
If a context is already expired, there's still a chance that
a Get will succeed because both channels are ready to communicate.
This bug also masked another bug in dbconnpool and some other
bugs in our tests.
All fixed now.
2015-04-24 14:15:48 -07:00
Anthony Yeh 09a33831a7 Add tabletmanager StateChange event.
This event triggers based on actual state changes, rather than updates
to topology like the existing topo TabletChange event.
2015-04-24 14:11:36 -07:00
Anthony Yeh 84a10f2abf Merge pull request #622 from youtube/docker
Remove old files when building Docker image.
2015-04-24 10:58:34 -07:00
Anthony Yeh df7f6d0b30 Merge pull request #621 from youtube/mysql51
Deprecate Google MySQL 5.1 with extreme prejudice.
2015-04-24 10:58:08 -07:00
Anthony Yeh 55621d51d7 Remove old files when building Docker image.
Otherwise files that were renamed or removed since the last bootstrap
image was built will reappear and break the build.
2015-04-24 00:58:04 -07:00
sougou c88513e39a Merge pull request #619 from youtube/suguwork
tabletserver: verbose error for killed queries
2015-04-24 00:44:18 -07:00
Anthony Yeh 7ee9142d8e Deprecate Google MySQL 5.1 with extreme prejudice.
As part of removing googleBinlogEvent parsing support, I reworked the
binlog_streamer_test to use fake events instead of real ones. The actual
parsing of real events is already tested in its own unit test. Using
fake events simplifies the binlog_streamer_test, which really is only
meant to test the logic for converting a stream of events into a stream
of transaction objects.
2015-04-23 23:23:28 -07:00
Alain Jobart a77526dea2 Adding a ResetReplication command (nuclear command for replication
logs and state). Calling it at InitShardMaster time.
2015-04-23 16:11:40 -07:00
Sugu Sougoumarane 9a8f8b8a35 tabletserver: verbose error for killed queries 2015-04-23 15:35:32 -07:00
Alain Jobart 9c87cc28bc Disabling test that will break soon. 2015-04-23 11:54:38 -07:00