Commit Graph

73 Commits

Author SHA1 Message Date
95f6b237ab executor: fix statement count metrics for prepared statement. (#2704) 2017-02-22 13:22:45 +08:00
e6435e4fb1 server: ignore parseAttrs error in handshakeResponse (#2692)
It seems .NET send the wrong packet format.
Connection attribute is not important and can be ignored.
2017-02-21 16:07:47 +08:00
8ba5d9ee2a *: avoid using TypeDecimal (#2619)
TypeDecimal is misleading, it is not used as Decimal type, it's an unspecified type.
2017-02-10 10:53:05 +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
e1b78140a3 server: update defaultLoadDataBatchCnt value (#2538) 2017-01-23 17:20:42 +08:00
9d536e34a7 *: run a bootstrap session before store is ready (fix race) (#2491) 2017-01-22 11:39:25 +08:00
5aec72ce81 expression,plan: fix some issues of ROUND func (#2461) 2017-01-22 11:35:26 +08:00
0d9744261b *: slow log and metrics includes execute prepared statement. (#2512)
Execute prepared statement was ignored in slow query log and query metrics.
2017-01-21 10:06:55 +08:00
19546d119a server: refine time query (#2506)
Log slow query even if there is error.
Reduce slow time from 1s to 300ms.
2017-01-18 23:49:13 +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
2828e29a5b executor: refine statement count metrics (#2477) 2017-01-16 12:34:21 +08:00
02dfb04c84 server: add metrics for error counter. (#2435)
Use terror error class and code to generate error label.
2017-01-11 10:33:28 +08:00
0f15c2ec5d kv: limit transaction size, len, and entry length, reduce retry times (#2426) 2017-01-10 12:26:18 +08:00
ee9a0fea1c parser: limit error information size (#2415) 2017-01-09 14:31:18 +08:00
696bea9f37 *: Support batch load data (#2394) 2017-01-05 16:15:00 +08:00
a44d9c3891 *: add builtin function UNIX_TIMESTAMP (#2369) 2017-01-05 14:09:21 +08:00
b5c9650b5a server: rename IStatement to PreparedStatement (#2358) 2016-12-30 20:59:58 +08:00
0668c5fa03 server: rename IContext to QueryCtx (#2356)
* server: rename IContext to QueryCtx
2016-12-30 19:57:56 +08:00
b180334231 server: fix issue 2346 (#2351)
ComStmtExecute packet just send params type information the first time,
so PrepareStmt should save it for further use.
2016-12-29 23:28:17 +08:00
7c87b92468 *: Use standard error code/message for incorrect function argument count error (#2335)
* *: Use standard error code/message for incorrect fuction argument count
error
2016-12-28 14:57:39 +08:00
64484a4257 *: refactor context.Context (#2298)
Make transaction life cycle under control, prepare for correctly handle schema out of date error.
The old `GetTxn(forceNew boll)` is replaced by `Txn` and `NewTxn`,
`CommitTxn` and `RollbackTxn` is removed.
2016-12-23 13:02:41 +08:00
d508b6d2da util/types: workaround for time roundFrac (#2289) 2016-12-21 19:45:27 +08:00
3c7ac58d20 server: defer handshake packet make TiDB crash (#2267)
malformat packet is just an error
out of range panic should not spread to TiDB
2016-12-17 11:24:26 +08:00
24f27a2622 *: types.TimeInternal GoTime method would return error (#2185) 2016-12-12 17:22:49 +08:00
a14d99ef5d server: defend panic for ill-packet with null connection attribute (#2211)
* server: defend panic for ill-packet with null connection attribute
2016-12-09 17:38:04 +08:00
296f4a6cf3 util/types: refact Time introduce a TimeInternal interface (#2098)
Go time representation is not compatible with mysql, this
commit is a prepare before the code refact.

timeInternal is a interface for time representation, and it
would make the refact more smooth.
2016-11-29 21:04:59 +08:00
704a963f70 server: Enlarge token from 100 to 1000 (#2125) 2016-11-29 14:30:28 +08:00
b19cc75a94 mysql, types: move MyDecimal and Time from 'mysql' to 'types' package. (#2082)
So we don't need to handle sql mode in 'mysql' package, avoid potential dependency cycle.
2016-11-24 10:50:31 +08:00
f4b78e44da server: speed up unit test (#2010)
run many test cases parallel
split databases in server package for parallel
2016-11-23 10:46:43 +08:00
6b444f8e55 server: check an array out of range for malform packet (#2048) 2016-11-21 23:10:28 +08:00
91050ff1f8 parser: parse decimal literal instead of float literal (#2044)
Improves MySQL compatibility.
2016-11-21 19:29:25 +08:00
2f47f24b22 parser: database.ReservedKeyword as identifier & clean up (#2027)
1. fix a bug test.desc can't be used as identifier, which is valid in mysql
2. introduce ReservedKeyword in parser.y and clean up
3. fix mysql client "use `select`;" can't work
4. refine lexer's special comment mode pos line/offset
2016-11-19 14:22:10 +08:00
7ddb150920 executor: add more statements for metric of statement counter (#1967) 2016-11-15 14:34:15 +08:00
d0cb5d9187 *: truncate data (#2002) 2016-11-15 14:02:20 +08:00
2543f4b17c parser: handle scan identifier meets \0 (#1994)
this is a vague corner case
it should be illegal according to mysql document
but mysql implementation seems accept it
so we follow implementation
trim \0 in conn packet, report error when parser meet \0
2016-11-12 09:30:12 +08:00
1b96db9a57 *: improve query metrics and query log. (#1957)
change largest query time bucket from 2 seconds to 1024 seconds.
2016-11-05 18:15:33 +08:00
1c6c145f94 *: Set custom verbose flag to true (#1956)
* *: set custom verbose flag to true

* *: update .gitignore
2016-11-05 18:00:13 +08:00
1f1a60c02a *: improve log (#1944)
Add logging for set system variable.
Add connection ID in log.
Adjust some log level.
Improve readability.
2016-11-04 17:11:10 +08:00
6938f973cb server: Change handshake error log level (#1839) 2016-10-18 14:41:58 +08:00
1fbdb1b193 *: Tiny clean up (#1826)
* *: add error check and error trace
* server: rename MySql to MySQL
2016-10-14 18:11:57 +08:00
80ea2ea093 server: fix connection string collation (#1811) 2016-10-10 19:02:40 +08:00
0e289d1c0e *: Update TiDB version, check ClientLocalFiles capability when handling load data operation (#1774) 2016-10-09 20:36:43 +08:00
900a7d67dd server: add comments for readability. (#1798) 2016-10-09 18:48:22 +08:00
e472f5aa3b server: handle ClientPluginAuthLenencClientData capability properly (#1772)
fix issue https://github.com/pingcap/tidb/issues/1768
2016-09-29 10:38:50 +08:00
453158c5a3 *: update server metrics (#1749) 2016-09-21 19:44:35 +08:00
5cf2c28e5a store/tikv: add metrics. (#1741) 2016-09-21 10:32:53 +08:00
999fa025c7 server: Add metrics (#1729)
Add metrics for server package.
Update gitcookie.sh.
2016-09-17 11:45:57 +08:00
a02323047e *: remove go-metrics (#1728)
We use prometheus to do metrics jobs now.

It is useless now.
2016-09-14 15:07:41 +08:00
a82abef98f server: Add git hash into status api (#1724)
It is more convenient to get git hash from http api then from log file.
2016-09-14 10:32:29 +08:00