Commit Graph

263 Commits

Author SHA1 Message Date
0dada1ec37 binlog: update binlog enable config && add tidb_log_bin system variable (#9625) 2019-03-11 22:18:46 +08:00
80110fbf78 *: refactor slow log format and parse slow query log to SLOW_QUERY table. (#9290) 2019-03-11 14:42:29 +08:00
e6f4f6c7f9 server, sessionctx: workaround var initialization (#9383) 2019-02-21 16:19:30 +08:00
46c1cf1c3b tidb-server:Fix misspell (#9380) 2019-02-21 11:39:16 +08:00
8f3c74c1c5 *: support variable log_bin (#9343) 2019-02-20 16:28:15 +08:00
a333cfb536 config: show tidb_force_priority should be same as config (#9342) 2019-02-18 17:33:06 +08:00
84d1513b09 plugin: support flush tidb plugin {name} in tidb-server (#9320) 2019-02-18 13:48:43 +08:00
6136ab14cf *: start replacing logger with zap logger (#9279) 2019-02-15 16:43:47 +08:00
c8727a97cd binlog: update pumps client && open log (#9163) 2019-01-24 14:33:47 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
41838ceb28 x-server: remove the X Server (#9038) 2019-01-15 10:59:41 +08:00
d298902371 tikvclient: use global config instead write them again (#9040) 2019-01-14 19:46:27 +08:00
4b98ad6f29 *: integrate plugin framework with TiDB (#9006) 2019-01-14 16:53:41 +08:00
504b10c27c server: try graceful close connection first (#8711) 2019-01-11 18:44:53 +08:00
2f54639f14 add binlog socket config for compatible with kafka version pump (#8732) 2018-12-19 13:23:14 +08:00
355a6290a1 ddl: fix a data race in unit test TestTableSplit (#8719) 2018-12-18 11:40:00 +08:00
30427927f6 *: move session.NewStore to store.New to achieve semantic accuracy (#8617) 2018-12-10 20:53:15 +08:00
93a18dfdc5 metrics: add percentage of CPU usage gauge (#8539) (#8580) 2018-12-05 14:47:04 +08:00
9e5cf68dc4 tidb-server: validate txn-local-latches.capacity is not equal to 0 (#8558) 2018-12-05 13:35:05 +08:00
654964a35b server: close connection when tidb server closed. (#8446) 2018-11-27 17:51:47 +08:00
84d1299bb2 config, util.kvcache: support the memory guard to prevent OOM for the plan cache (#8339) 2018-11-22 22:05:04 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
33a0b0c900 planner: fix a sporadic panic due to the PR #7684 when using the prepared plan cache (#7956) 2018-10-29 19:05:04 +08:00
508f5dd626 binlog: use pumps client to write binlog (#8070) 2018-10-27 17:52:01 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
f4d41273ba server: allow cors http request (#7939) 2018-10-21 11:53:36 +08:00
1f84db5cd7 add windows build support (#7773) 2018-09-26 17:09:13 +08:00
f387dfff09 add force priority config (#7777) 2018-09-25 20:28:28 +08:00
e79bd946ed *: change package name from plan to planner (#7760) 2018-09-25 11:16:39 +08:00
6421a405ee tidb-server: set TiDBMemQuotaQuery to the value in configuration file (#7729) 2018-09-17 17:17:01 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
4212e44c03 metrics: register the metrics when TiDB starting up (#7642) 2018-09-10 20:19:07 +08:00
f270b105c9 server: add USR1 signal handler to dump goroutine (#7587) 2018-09-03 22:56:01 +08:00
c97c81e180 tidb-server: enable mutex profiling (#7510) 2018-08-28 12:13:08 +08:00
53ffa1703e *: fix data race in the file of prepare_test.go (#7232) 2018-08-02 17:07:50 +08:00
ba5a33f04c add keep alive settings (#7100) 2018-07-19 17:28:41 +08:00
6dcaecaf79 Add advertise-address to config (#7078) 2018-07-18 10:46:12 +08:00
63c4562c27 *: remove non-prepared plan cache (#7040)
* *: remove non-prepared plan cache

non-prepared plan cache is not usable if we can only do full string match.
And further development doesn't worth the effort.
2018-07-13 18:15:05 +08:00
f6ee36e08c tidb-server, terror: add cleanup when createServer exits abnormally (#6947)
* tidb-server, terror: add cleanup in createServer
2018-07-03 14:19:59 +08:00
9952fe05b5 tidb-server: move "setupMetrics" to the front of "createStoreAndDomain" (#6921) 2018-06-27 21:26:07 +08:00
0ab0b50f25 stats: refine the pseudo condition for stats (#6565) 2018-06-27 17:05:37 +08:00
e94df345e5 distsql, main: fix some typos. (#6885) 2018-06-23 21:51:55 +08:00
7029e5ee85 tidb-server: check run-ddl is false when using mocktikv (#6781) 2018-06-08 11:31:17 +08:00
7fbbb1ff3e sessionctx/binloginfo: add a timeout for writing binlog (#6587) 2018-05-21 17:21:34 +08:00
dd4fef2e04 tidb-server: don't bind graceful shutdown to SIGTERM (#6562)
SIGTERM is the default kill command signal, it's better to bind it
with normal exit rather than graceful shutdown.
2018-05-15 20:16:31 -05:00
cd950c11e9 binloginfo: fix CI in unit test TestMaxRecvSize (#6554) 2018-05-15 02:29:12 -05:00
11e7f5bf97 binloginfo: fix a data race on global.Config() in the unit test (#6548) 2018-05-14 22:19:11 -05:00
7f2b3bd899 *: Add an option to stop writting binlog when TiDB meets binlog error (#6503)
Add an option to stop writting binlog when meets binlog error
Provide http interface to recover binlog service
2018-05-11 09:50:15 -05:00
23e8c6e12b *: add a system variable auto_analyze_ratio (#6455) 2018-05-04 10:54:30 +08:00
e215e93948 *: provide a configurable tidb_retry_limit session variable (#6369) 2018-05-03 19:52:53 +08:00