Commit Graph

53 Commits

Author SHA1 Message Date
bb02c4a4ae domain: Unify lease (#1239)
* domain: unify lease

* domain: tiny clean up


* *: give mock tikv store a uuid
2016-05-19 11:36:09 +08:00
93577c17d1 *: Fix infoschema/perfschema concurrent bugs (#1232)
* *: Fix infoschema/perfschema concurrent bugs

Make it safe to create Handle on multiple stores.
2016-05-16 16:32:34 +08:00
xia
6aacddd44e *: unify error format 2016-03-31 16:20:47 +08:00
515f193bd2 *: Remove coldef package
There are lots of redundancies between ast and coldef. So we remove
coldef.
2016-03-05 19:11:04 +08:00
322476ca68 *: add tag to log message to make it easy to be filtered out. 2015-12-17 20:04:20 +08:00
5e52c60240 *: Fix bug for select @@character_set_database
1. Add charset info when create schema
2. Set charset variable when run use statement
Fix: https://github.com/pingcap/tidb/issues/706
2015-12-11 14:29:32 +08:00
16c09e14c7 domain: make go vet happy. 2015-12-09 15:58:20 +08:00
7336360a59 *: return error instead of log.Fatal for TableFromMeta 2015-12-09 14:30:38 +08:00
a6eb46f8a2 domain: Address comment. 2015-12-06 22:22:29 +08:00
109a92a57b domain: Address comment. 2015-12-06 11:30:26 +08:00
86d04a07c2 domain: support retry if load failed. 2015-12-05 20:03:18 +08:00
7c1fc586f2 domain: lock reload and fix version check.
In mysql test , sometimes the domain’s schema version  may be changed
lesser because of another slow transaction.
So we must use lock to guarantee reload once at same time and update
the version check way.
It is very hard to write a test for this, so if we can pass mysql test
using HBase with no error, I think it is fixed.
2015-11-27 17:43:27 +08:00
xia
fa34c8c935 domain: update test 2015-11-23 14:21:14 +08:00
xia
8cd710b1d4 domain: add test 2015-11-23 14:00:28 +08:00
xia
e640d837a6 domain: add the reload timeout range 2015-11-23 13:36:14 +08:00
xia
158dcbeb0e domain: update log 2015-11-23 11:22:57 +08:00
xia
ea98de8e4a domain: update log 2015-11-23 11:11:32 +08:00
xia
0b8b20c014 domain: update code 2015-11-23 11:00:59 +08:00
xia
c3814a818c domain: update code 2015-11-23 10:39:33 +08:00
xia
5dc1ae0285 domain: add reload timeout 2015-11-20 14:20:37 +08:00
xia
3e84e7e96d *: remove log 2015-11-20 13:52:59 +08:00
xia
7ffa9da9c7 domain: add log 2015-11-20 10:27:41 +08:00
xia
200686bd57 *: rename mockStatist to mockStatistics, and
do tiny clean
2015-11-18 13:33:38 +08:00
xia
c11f6f4e6c Merge remote-tracking branch 'origin/siddontang/dev-schema-change' into zimuxia/show_status
Conflicts:
	domain/domain.go
2015-11-17 20:10:39 +08:00
7cc83774c3 domain: skip ErrDBClosed in load loop. 2015-11-17 20:01:35 +08:00
xia
f4ca52ea36 Merge remote-tracking branch 'origin/siddontang/dev-schema-change' into zimuxia/show_status
Conflicts:
	ddl/ddl.go
	domain/domain.go
2015-11-17 15:56:52 +08:00
xia
7b41184fe6 *: rename statist to statistics 2015-11-17 15:12:53 +08:00
xia
051a476b2a *: update code structure 2015-11-17 14:49:55 +08:00
8aedcdce76 domain: raise panic if reload failed and try reload before get. 2015-11-17 09:39:59 +08:00
xia
6ba84b78f4 *: fix using stat when ddl is closed 2015-11-16 14:35:54 +08:00
xia
04c9ea4966 *: update test and pass golint 2015-11-16 12:00:32 +08:00
0ddf6eb415 *: add stat interface and corresponding implememtation 2015-11-16 09:55:17 +08:00
efaeeff945 *: add ddl callback interface
we can customize the callback for better test.
2015-11-09 17:38:07 +08:00
999d883ce8 *: Address comment. 2015-11-06 10:37:22 +08:00
fbed93ca52 *: support simple statistics
we will use show status to show DDL statistics later.
2015-11-05 22:52:49 +08:00
b029a5fd07 domain: Address comment. 2015-11-05 08:57:36 +08:00
9aeb3b27ec *: reset lease time after bootstrap 2015-11-04 19:16:49 +08:00
f4e618f1c1 *: merge master and fix conflict. 2015-10-29 21:39:45 +08:00
0c9a4e324b *: cleanup meta and structure. 2015-10-29 17:25:05 +08:00
0b7bd49bb5 *: lease uses time.Duration and add close for test conveniently. 2015-10-29 10:17:21 +08:00
c8bbf7879d *: support create table and drop table. 2015-10-27 15:05:33 +08:00
d0c80f6a0d *: add drop schema 2015-10-27 10:09:57 +08:00
2cb3e2add9 *: first commit and support create schema. 2015-10-26 21:54:54 +08:00
501e3a7a09 *: Address comment 2015-10-23 16:49:01 +08:00
deaeacddba *: simplify meta function 2015-10-23 16:09:55 +08:00
b647f8fba4 *: add schema lease feature 2015-10-23 09:50:54 +08:00
791f0d6f78 *: refactor with meta API. 2015-10-21 14:46:58 +08:00
xia
c214b7d159 domain: update log 2015-10-09 10:11:30 +08:00
d398e37832 Refactor WIP 2015-09-24 21:41:22 +08:00
be44e4a286 *: Introduce schema version
Make schema change to an atomic operation.
2015-09-24 17:28:34 +08:00