Commit Graph

439 Commits

Author SHA1 Message Date
94418b289f *: add a ctx parameter to distsql.Select, kv.Client and tikv.Client (#2699) 2017-02-22 16:02:22 +08:00
a2f2e3f40a tidb,store/tikv: use special session to execute ExecRestrictedSQL (#2687) 2017-02-22 15:08:17 +08:00
6859d121b9 txn:improvement for point get by unique key or pk (#2631) 2017-02-20 22:39:36 +08:00
6847aaaafa tikv/oracle: remove updated channel and mutext for last TS. (#2675) 2017-02-18 16:33:13 +08:00
50af37fd83 store/tikv: open switch of topn. (#2658) 2017-02-16 19:22:33 +08:00
69a2dbed64 store/localstore: fix a bug that blocking store.Close. (#2635)
When Store.Close is called delete worker may exit before checker,
Then delCh may be full, blocking forever.
2017-02-14 18:57:31 +08:00
5b84277ac9 store/tikv: make lock TTL test more stable. (#2595) 2017-02-06 15:57:22 +08:00
8bafc3d515 tidb: accelerate unit test (#2590)
Avoid BootstrapSession everytime, just do it once in testSessionSuite.SetUpSuite
2017-02-06 15:11:38 +08:00
c131b3c4b5 store/tikv: extend lockTTL for txns that takes a long time to read. (#2585) 2017-02-05 14:03:30 +08:00
8ddea101df store/tikv: fix gc lifetime metrics. (#2587) 2017-02-04 13:54:03 +08:00
b8acb10337 store/tikv: fix a date race in test (#2530) 2017-01-22 04:20:15 -06:00
20f9a90f49 store/tikv: tuning backoff base. (#2508) 2017-01-22 13:02:14 +08:00
0e76e66e03 store/tikv: log big transaction. (#2525) 2017-01-22 11:59:31 +08:00
9d536e34a7 *: run a bootstrap session before store is ready (fix race) (#2491) 2017-01-22 11:39:25 +08:00
dc2ec2823a store/tikv: add log for slow coprocessor task (#2524) 2017-01-21 14:12:07 +08:00
999517c4f1 Revert "*: run a bootstrap session before store is ready" (#2490) 2017-01-17 15:14:24 +08:00
e1ecc1059e *: run a bootstrap session before store is ready (#2481) 2017-01-17 14:46:35 +08:00
8d426be68f store/tikv: make test stable. (#2467) 2017-01-15 14:00:33 +08:00
85e6afdfb6 distsql, store/tikv: refine metrics. (#2460) 2017-01-15 13:50:16 +08:00
d0813e181f store/tikv: log more info for unexpected errors. (#2459) 2017-01-14 16:19:02 +08:00
1e9131d2ff store/tikv: fix cancel prewrite bug. (#2454) 2017-01-14 11:24:48 +08:00
0f15c2ec5d kv: limit transaction size, len, and entry length, reduce retry times (#2426) 2017-01-10 12:26:18 +08:00
0e599c6c47 store/tikv: handle RaftEntryTooLarge error. (#2425) 2017-01-09 23:37:48 +08:00
65f1a0be12 tikv: Enable if expr pushdown (#2387) 2017-01-04 16:55:05 +08:00
f35ab30127 *: change the implementation of domain schema lease (#2327)
lease is based on pd timestamp oracle instead of TiDB local time
return retryable error when schema check find schema changed
move schema lease check to 2PC, use commitTS
2017-01-03 19:45:08 +08:00
20cb3f2c93 store/tikv/mock-tikv: fix data race (#2352) 2016-12-29 22:17:39 +08:00
fbed4ca5ee store/tikv: split table for mock tikv (#2331) 2016-12-29 20:16:13 +08:00
5a3099477a ticlient: clear store address info when receiving StoreNotMatch (#2339) 2016-12-28 17:51:46 +08:00
02ad847e9c store/tikv: return error when transaction is too large. (#2325) 2016-12-26 23:40:52 +08:00
73a7118d9b store/tikv: adjust log levels. (#2314) 2016-12-23 14:12:44 +08:00
f32eaedcb3 Skip constraint check for prewrite when loading data (#2288) 2016-12-21 21:16:53 +08:00
0adabe53a1 *: begin a transaction in PrepareTxnCtx, unify in transaction. (#2290)
Transaction should has the same life cycle as TxnCtx, so create a
new transaction in PrepareTxnCtx if transaction is nil or invalid.
2016-12-21 16:48:19 +08:00
d0413b1c61 store/tikv: workaround for commit timeout. (#2276) 2016-12-19 17:41:58 +08:00
38a11f2b79 store/tikv: update region error handling. (#2262) 2016-12-16 10:57:07 +08:00
c7e255eb8a store/tikv: add rawkv metrics. (#2228) 2016-12-13 10:34:14 +08:00
cd8578c9b8 store/tikv: trim error message. (#2224) 2016-12-12 17:39:29 +08:00
654f4f49b3 *: Remove the package of bytes (#2221)
* util: remove the package of bytes
2016-12-12 12:09:48 +08:00
1b8051d3c5 *: set and use Flags to properly handle truncate error (#2212) 2016-12-12 11:45:58 +08:00
1e8d970b3e store/tikv: cache store. (#2193) 2016-12-09 11:10:42 +08:00
5f53175169 kv: check iter.Next() errors. (#2198) 2016-12-08 14:08:59 +08:00
90c61f0a2d store/tikv: fix region error handling. (#2192) 2016-12-07 17:46:07 +08:00
4f742c2b4d store/tikv: increase epsilon for oracle test. (#2191) 2016-12-07 16:47:18 +08:00
b47cb7b6c5 store/tikv: reduce the use of region.Clone(). (#2182) 2016-12-07 16:17:45 +08:00
5d68641931 store/tikv: update region error handling. (#2178) 2016-12-07 14:17:29 +08:00
e386ccc074 store/tikv: switch case when on. (#2171) 2016-12-05 20:51:30 +08:00
74a1c9935d *: add StatementContext argument to functions. (#2157)
Add StatementContext argument to more functions where it is needed.
2016-12-02 23:28:11 +08:00
28a7bac17c store/tikv: fix retry open store (#2122)
* store/tikv:fix retry open store
2016-12-01 14:12:21 +08:00
d5afd1aa92 store/tikv: encode keys before save to mvcc store. (#2108)
* store/tikv: encode keys before save to mvcc store.
2016-11-30 14:18:55 +08:00
c4d3d5d08a store/tikv: enable test. (#2114) 2016-11-28 21:55:48 +08:00
0348130cd5 fix "context" import. (#2116) 2016-11-28 21:05:54 +08:00