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

5253 Коммитов

Автор SHA1 Сообщение Дата
sougou 4f59fd1306 Merge pull request #613 from youtube/suguwork
Fix flaky rand ticker test.
2015-04-21 22:26:44 -07:00
Sugu Sougoumarane ee0236140c Fix flaky rand ticker test.
Looks like 3ms is too small as tolerance for error. Increased it
to 20ms and scaled the other values accordingly.
2015-04-21 21:23:30 -07:00
sougou 78786355a9 Merge pull request #612 from youtube/suguwork
Fixing broken tests
2015-04-21 21:16:13 -07:00
Sugu Sougoumarane 4571ab645f Fixing broken tests
My previous changes were outdated and broke some tests. Fixed now.
2015-04-21 21:14:57 -07:00
sougou add0ec2997 Merge pull request #611 from youtube/suguwork
address code review comments
2015-04-21 21:11:12 -07:00
Sugu Sougoumarane fbbea854f8 Merge branch 'master' into suguwork 2015-04-21 21:09:16 -07:00
Shengzhe 274af34505 Merge pull request #604 from yaoshengzhe/fix_add_enablepublishstats_flag
add EnablePublishStats flag in queryctl.go
2015-04-21 20:29:26 -07:00
Shengzhe Yao cbd9ce27b3 add EnablePublishStats flag in queryctl.go
This change allows one to publish system variables optionally.
2015-04-21 20:28:20 -07:00
Alain Jobart 18cfb530db Merge pull request #608 from youtube/resharding
Resharding
2015-04-21 14:36:00 -07:00
Alain Jobart 81908721ff Merge branch 'master' into resharding 2015-04-21 13:11:56 -07:00
Anthony Yeh f80151685b Merge pull request #605 from youtube/docker-test
Fix permission issues when running tests in Docker.
2015-04-21 10:41:49 -07:00
Alain Jobart d82397f884 This test also needs to rebuild SrvShard. 2015-04-21 10:35:15 -07:00
Alain Jobart 93082cf55b Removing Shards from SrvKeyspace, as it has been replaced
by ShardReferences.

Also making rebuilding SrvShards an option of RebuildKeyspaceGraph,
and not doing it for Migrate* calls, to speed them up.
2015-04-21 09:21:41 -07:00
Shengzhe a0146d137c Merge pull request #569 from yaoshengzhe/fix_remove_transaction_go
move Commit func from transaction.go to QueryEngine
2015-04-20 19:54:44 -07:00
Shengzhe Yao 7fa6ae0c6a move Commit func from transaction.go to QueryEngine
transaction.go only has a single func Commit, it might make more sense
to move Commit to QueryEngine since it uses the QueryEngine's tx pool
and schemaInfo.
2015-04-20 19:54:35 -07:00
Anand Henry f6886273ac Merge pull request #606 from michael-berlin/fix_gson_maven2
java: Use gson 2.3.1 to fix compilation for maven2 users.
2015-04-20 17:39:59 -07:00
Michael Berlin 0ddc2330f8 java: Use gson 2.3.1 to fix compilation for maven2 users.
Newer Maven versions fail compilation of Vitess with the error "Invalid
JDK version in profile 'doclint-java8-disable': Unbounded range [1.8,".

The original issue is documented here:
https://code.google.com/p/google-gson/issues/detail?id=588

The fix is to use gson-2.3.1 instead of gson-2.3.
2015-04-20 17:33:44 -07:00
Anthony Yeh 9a885e51c4 Fix permission issues when running tests in Docker.
The vtdataroot volume needs to be created after the directory itself,
and other fixes.
2015-04-20 17:11:45 -07:00
Anthony Yeh 672dd00ecf Merge pull request #603 from youtube/docker-bootstrap
Split off bootstrap into separate Docker image.
2015-04-20 16:12:04 -07:00
Anthony Yeh 3a8ec3799a Add Makefile rule to run tests inside Docker.
This will let contributors test changes without having to do bootstrap
at all.

It also makes it easy to test against multiple flavors without having to
swap out installed packages. You can even run tests against multiple
flavors simultaneously without interfering, if you have enough RAM.
2015-04-20 16:03:01 -07:00
Anthony Yeh 89cb8a5a01 Split off bootstrap into separate Docker image.
This makes it faster to use Docker images to test new changes, as
suggested in #492.

Since we don't need to re-bootstrap for every push to master, this also
makes our automated builds faster and more reliable (they often fail due
to network lag when installing dependencies with apt-get).

Lastly, this will make it easier to swap out bootstrap images built for
different flavors, such as MariaDB 10.0 vs MySQL 5.6.
2015-04-20 15:09:26 -07:00
Anthony Yeh 000f0b5ceb Move vitess/etcd to same Go version as vitess/base.
That way they can share the Go image, as intended.
2015-04-20 14:58:11 -07:00
Shengzhe 297bbda2fc Merge pull request #600 from yaoshengzhe/fix_add_queryz_unit_test
add queryz unit test
2015-04-20 13:52:35 -07:00
Shengzhe Yao 489fd1a840 add queryz unit test
1. move registerQueryzHandler to queryctl.go
2. move newTestSchemaInfo from schema_info_test.go to testutils_test.go
2015-04-20 13:51:25 -07:00
Shengzhe ca436c6b40 Merge pull request #581 from yaoshengzhe/fix_add_table_info_unit_test
add table info unit test
2015-04-20 13:50:06 -07:00
Shengzhe Yao 99a0c2954b add table info unit test 2015-04-20 13:49:23 -07:00
Shengzhe 3fb7e03eaf Merge pull request #580 from yaoshengzhe/fix_add_tablet_error_unit_test
add tablet error unit test
2015-04-20 13:48:47 -07:00
Shengzhe Yao 2be9fc5762 add tablet error unit test 2015-04-20 13:47:36 -07:00
Shengzhe 363646d658 Merge pull request #574 from yaoshengzhe/fix_improve_tx_pool_test
improve tx_pool unit test
2015-04-20 13:45:49 -07:00
Shengzhe Yao e53d76b8ff improve tx_pool unit test
add more test cases to test tx pool failure modes, this increases the test
coverage to 100%.
2015-04-20 13:45:05 -07:00
Alain Jobart 7dd7ec0e49 Merge pull request #584 from youtube/replication
Replication
2015-04-20 13:30:11 -07:00
Anthony Yeh 2615fbed67 Add .dockerignore to exclude intermediate Godeps output.
These files will cause errors in the Docker build if the host system has
a different version of Go than the base image.
2015-04-20 13:10:40 -07:00
shrutip 815ea8341c Merge pull request #590 from youtube/client_lib
execute batch wiring and example.
2015-04-20 12:19:42 -07:00
Alain Jobart 2093a975ca Merge branch 'master' into replication 2015-04-20 10:56:43 -07:00
Shengzhe 803c371da3 Merge pull request #597 from yaoshengzhe/fix_refactor_sqlquery_unit_test
refactor sqlquery unit test and improve coverage
2015-04-20 10:38:29 -07:00
Shengzhe Yao 9b05e53682 refactor sqlquery unit test and improve coverage
this change effectively brings sqlquery.go test coverage to 99%

1. add "queryCalled" in fakesqldb.DB so that tests could know number of
   times a query hits a database.
2. add testUtils struct in testutils_test and this struct contains common
   test funcs that could be used in tabletserver package.
3. add sqlquery tests to test SqlQuery.allowQueries failure modes.
4. add sqlquery tests to test SqlQuery.checkMySQL failure modes.
5. add sqlquery tests to test transaction failure modes.
6. add sqlquery tests to test SqlQuery.ExecuteBatch failure modes.
7. add sqlquery tests to test SqlQuery.SplitQuery failure modes.
2015-04-20 10:37:32 -07:00
Shengzhe e6ae679165 Merge pull request #598 from yaoshengzhe/fix_schemaz_unit_test
add schemaz unit test
2015-04-20 10:36:56 -07:00
Shengzhe Yao 699f376d5b add schemaz unit test 2015-04-20 10:35:54 -07:00
Shengzhe 0199cf0de2 Merge pull request #601 from yaoshengzhe/fix_rename_queryrules_test
rename query rules and query rule info tests
2015-04-20 10:30:42 -07:00
Alain Jobart b50603c10f Merge pull request #602 from youtube/resharding
Resharding
2015-04-20 10:30:16 -07:00
Alain Jobart 5c7dcccfb5 Removing SrvShard.ServedTypes field. It is unsued, and introduces
an unwanted dependency for rebuild.
2015-04-20 10:16:45 -07:00
Alain Jobart 6e0839f61a Merge branch 'master' into replication 2015-04-20 09:16:59 -07:00
Alain Jobart 25b168e609 Another batch of golint fixes 2015-04-20 08:59:32 -07:00
Alain Jobart 01a8e6097a Fixing a whole bunch of golint warnings. 2015-04-20 08:50:36 -07:00
Alain Jobart 0d54dea732 Merge pull request #577 from youtube/resharding
Resharding
2015-04-20 07:21:20 -07:00
Alain Jobart c23ec88a9e Switching a time.Now().Sub() to time.Since() 2015-04-20 07:19:45 -07:00
Alain Jobart 4e83c96cd2 Fixing a few things after comments. 2015-04-20 07:18:40 -07:00
Shengzhe Yao 4f3a6d6cbe rename query rules and query rule info tests
1. use panic in query rule info when registering a registered query rule.
2. fix a bug in query_rules.go that should get an error if "op" is < QR_IN or > QR_NOTIN.
3. add more test cases to test query rules failure cases.
4. fix a comment that the returned error should be "want bool for OnMismatch" when OnMismatched is not a boolean (instead of "want bool for OnAbsent").
2015-04-19 22:15:45 -07:00
Shruti Patil 1e2a1b3a00 Small cleanup of old conflict leftover. 2015-04-17 15:21:31 -07:00
Shruti Patil 2cca1f4b1c Merge branch 'client_lib' of github.com:youtube/vitess into client_lib 2015-04-17 15:19:26 -07:00