Commit Graph

1118 Commits

Author SHA1 Message Date
814015ea25 tikv: check lock timeout again after resolving lock (#14066) 2019-12-16 16:14:13 +08:00
4d90d81240 store/tikv: fix a memory leak in the batchClient for the large transactions. (#14031) 2019-12-11 23:07:00 +08:00
a94cff903c *: refactor LockKeys API (#14020) 2019-12-11 15:05:59 +08:00
af1d216cbe *: fix some golint warnings (#14012) 2019-12-11 14:29:58 +08:00
d43f980df6 mockstore: update pd (#14008) 2019-12-10 17:24:58 +08:00
01a7d00053 executor: change pessimistic lock wait start for one statement (#13922) 2019-12-06 15:17:49 +08:00
f64c22fbc5 store/tikv: refine grpc config (#13938) 2019-12-06 11:55:26 +08:00
8f09e816b2 store/tikv: fix grpc backoff config (#13928) 2019-12-05 19:39:49 +08:00
b1391ec9ee store/tikv: fix CheckStreamTimeoutLoop goroutine leak (#13812) 2019-12-05 17:54:10 +08:00
3b3b488a65 *: close tickers properly (#13902) 2019-12-05 13:32:39 +08:00
5b6422df58 *: support read remote TiDB memory table of cluster (#13065) 2019-12-04 13:05:36 +08:00
1de8569bce executor: show back-off details in slow log (#13770) 2019-12-03 06:42:32 -06:00
da414efbbc *: wait for binlog recovering when using HTTP API (#13740) 2019-12-03 17:28:09 +08:00
a7d5b98306 *: Move StartTs from DAGRequest to Coprocessor.Request (#13823) 2019-12-03 17:13:12 +08:00
236f5efcf8 store: refactor code to refine some static check issue (#13828) 2019-12-03 17:02:39 +08:00
a1adfb8c1b store/tikv: fix lockTTL too large if local time is behind timestamp. (#13865) 2019-12-03 12:25:55 +08:00
d587c63062 *: some tiny improvements for the large transaction (#13815)
1. Set the default txn size limit to 1G
2. Reduce memory footprint during insert for the large txn
3. Recycle the session buffer memory to avoid leak
4. Set rate limit to avoid 2PC prewrite overloads the TiKV
5. Start ttlManager for the large txn
2019-12-03 00:40:40 +08:00
db535c1049 kv: refactor code to fix type SplittableStore name typo (#13829) 2019-12-02 09:08:51 +08:00
c10c576cab store: implement non-block reading for Get and BatchGet under the large transaction protocol (#13599) 2019-11-27 18:54:58 +08:00
134b80cdf4 distsql: Unify endian for Chunk encode format (#13349) 2019-11-27 17:15:25 +08:00
3a48a48630 *: remove the assertion proto (#13732)
The assertion proto was introduced to verify the data consistency, but I find
it's complex and hard to achieve that goal. Adding additional assertions just
makes more memory occupation, especially in the large transaction.
So it's better to remove it.
2019-11-26 22:58:49 +08:00
3f95d1681d tikv: make follower-read request retry other peers when meet EpochNotMatchError (#13472) 2019-11-26 16:57:44 +08:00
4b830aa7f6 *: Remove unused code (#13674) 2019-11-22 11:37:07 +08:00
ebe8b0989d *: limit a single test function timeout to 4s (#13573) 2019-11-21 13:44:08 +08:00
8535b90104 session: add more information for retry error (#13525) 2019-11-19 15:52:25 +08:00
359a667d42 store: implement non-block read when coprocessor meets the lock of a large transaction (#11986) 2019-11-19 13:20:00 +08:00
ceeb008e0a tikv: fix store addr cannot update bug after change new store addr and old addr be offline (#13495) 2019-11-19 10:19:24 +08:00
8401cbdeba store: update kvproto.CheckTxnStatus response (#13432) 2019-11-18 18:13:50 +08:00
40c9f9c6e4 executor: fix a batch get executor bug inside a transaction (#13473)
When the BatchGetExec runs inside a transaction, it should consider the data changes
in the membuffer.
2019-11-15 16:55:05 +08:00
4283263b13 store : add store limit to restrain bad store from occupying too much token limit. (#12779) 2019-11-13 18:49:24 +08:00
657b5236b8 session: make TestInnodbLockWaitTimeout faster and remove useless testcase (#13383) 2019-11-13 13:37:36 +08:00
3f9f6a2780 session,store: make TestAsyncRollBackNoWait run faster to boost CI (#13377) 2019-11-12 12:41:49 +08:00
3712664d43 session,store/tikv: make CI more stable (#13303)
make TestBatchResolveLocks more stable
make TestErrorRollback faster
2019-11-09 17:09:19 +08:00
f3c8abb2e2 coprocessor: fix wrong cop task range for tiflash. (#13292) 2019-11-08 20:11:53 +08:00
5c3ed7ff60 *: refine transaction related log (#13263) 2019-11-08 14:56:09 +08:00
60d4291c5d store: upgrade the CheckTxnStatus API (#13123)
CheckTxnStatus introduces a non-block read mode. In this mode, TiDB can ignore
the secondary lock TTL check and send the CheckTxnStatus request.
2019-11-07 19:09:13 +08:00
aecc3421dc executor: do update forUpdateTs for err path (#13218) 2019-11-07 13:59:39 +08:00
80939f2a47 planner: prune cop task for tiflash (#13131) 2019-11-07 13:20:32 +08:00
c01006acb0 expression: fix incorrect proto fields and add missing overflow handling for arithmatic functions (#12858)
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
2019-11-06 17:39:14 +08:00
538077ff75 *: rename Arrow to Chunk (#13060) 2019-11-06 14:51:10 +08:00
27426daed4 *: make the version of etcd consistent with pd (#13176)
Signed-off-by: Neil Shen <overvenus@gmail.com>
2019-11-06 12:08:03 +08:00
aaaf2546dd executor: make TestSplitRegionTimeout stable (#13152) 2019-11-06 11:24:41 +08:00
5fd8b4d251 executor: support innodb_lock_wait_timeout for pessimistic transaction (#13103) 2019-11-05 17:26:40 +08:00
f19a70c635 config: remove the pessimistic.ttl configure (#13112) 2019-11-05 10:46:10 +08:00
f12403ef08 executor: support select for update no wait (#12775) 2019-11-04 17:01:40 +08:00
0201f4f878 kv: use last range if streaming response does not contain a range entry (#13062) 2019-11-04 15:30:40 +08:00
66a311c945 store/tikv: do not backoff when PessimisticLock return locked error (#13110) 2019-11-04 14:41:43 +08:00
6dfe2f2118 infoschema: add information_schema.tidb_cluster_info to retrieve cluster topology. (#13035) 2019-11-04 14:22:58 +08:00
e4856f07fb store/tikv: make function TestCheckTxnStatus more stable in CI (#13002) 2019-11-01 15:55:50 +08:00
000c1ba5db planner, session: add isolation read with engine type (#12997) 2019-11-01 15:47:12 +08:00