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

5265 Коммитов

Автор SHA1 Сообщение Дата
Anthony Yeh cc21f69afd Rename table_cache -> table_open_cache.
This option was renamed in MySQL 5.5, so it has been silently ignored
since we moved to MariaDB 10.0. I found out it was wrong because MySQL
5.6 quits if it sees an unknown option.
2015-04-22 15:15:23 -07:00
Anthony Yeh a58cde4f3b Clean up mounted VTDATAROOT from inside Docker.
Otherwise, you may get permission denied when trying to remove the temp
dir as a normal user, because the files were created by the 'vitess'
user inside Docker.
2015-04-22 15:06:07 -07:00
Anthony Yeh 7f444655db Implement vio_socket_shutdown for MySQL 5.6. 2015-04-22 14:21:40 -07:00
Anthony Yeh 58820a9e34 Create bootstrap image for MySQL 5.6. 2015-04-22 14:21:18 -07:00
Anthony Yeh 7d3c6f94d7 test.go: Put logs in flavor subdir. 2015-04-22 14:18:45 -07:00
Anthony Yeh cba3b12058 Change capitalization of MySQL56 flavor ID.
It should match the convention established with "MariaDB".

I looked into making them case-insensitive, but it would be more tricky
than it's worth because flavor IDs are used as part of the protocol
between servers. So an old server that is case-sensitive would choke on
a message from a new one.
2015-04-22 13:02:10 -07:00
Shengzhe 991b9e38e1 Merge pull request #615 from yaoshengzhe/fix_add_more_testutils
move some test util funcs from sqlquery_test.go to testutils_test.go
2015-04-22 10:30:22 -07:00
Shengzhe Yao 9cc1024142 move some test util funcs from sqlquery_test.go to testutils_test.go
1. add newQueryServiceConfig, newDBConfigs and newMysqld to testutils_test.go.
2. enforce these funcs under testUtils struct for better code readability.
2015-04-22 10:29:21 -07:00
Shengzhe f7abf84af0 Merge pull request #614 from yaoshengzhe/fix_improve_cache_pool_unit_test
improve cache pool unit test
2015-04-22 10:21:52 -07:00
Shengzhe Yao b87e7d0329 improve cache pool unit test
1. add verify tablet error test func in testutils_test.go
2. add methods to enable/disable fakecacheservice
2015-04-22 10:21:24 -07:00
Anthony Yeh b10354ed0b Merge pull request #610 from youtube/test.go
Add test-runner script for integration tests in Docker.
2015-04-22 09:51:49 -07:00
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
Anthony Yeh b14c3a308f Add test-runner script for integration tests in Docker.
This is an alternative to 'make integration_test',
with the following advantages:

* Tests run in Docker, so no bootstrap is necessary.
* Tests are hermetic and can run in parallel.
* Test against different flavors just by setting a flag.
* Failing tests are retried to see if they are flaky.
* A failed test will be recorded for later inspection, while the script
  continues to run other tests.
* A test that takes too long will be considered stuck and retried.

There's plenty of room for improvement, but now that we have something
in a more readable language than Makefile, we can iterate.
2015-04-21 20:12: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