Commit Graph

329 Commits

Author SHA1 Message Date
3104c87230 Add index page on HTTP Server (#7769) 2018-10-10 19:48:39 +08:00
05666f5ad3 session: set Sleep state for process info (#7826) 2018-10-08 12:38:55 +08:00
5baedaa21c expression, types: fix some corner case when parsing string to datetime (#7701) 2018-10-08 10:35:52 +08:00
05b37de16e *: use chunk grow for simple executor (#7540) 2018-09-27 09:07:51 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
f497444389 server: support resigning ddl owner, use http method ddl/owner/resign (#7649) 2018-09-11 15:18:17 +08:00
e7409e38ee *: correct comment mistakes. (#7661) 2018-09-11 09:41:30 +08:00
4212e44c03 metrics: register the metrics when TiDB starting up (#7642) 2018-09-10 20:19:07 +08:00
8c44f562f5 metrics: add different labels for restricted SQL and general SQL (#7631)
The newly added label is `sql_type`, it has value: `general` and `internal`,
users can use this label to filter metrics they have interest.

Also, add keyword `[INTERNAL]` for restricted SQL printed in slow log for
convenient identification.
2018-09-07 14:23:48 +08:00
6e3bbe8e35 *: add HIGH_PRIORITY for the bootstrap SQLs. (#7616) 2018-09-06 00:49:12 +08:00
4538bcd52c server: make long-data type no longer check nullBitmap (#7573) 2018-09-05 17:31:12 +08:00
f915575ebe server: add comment for #7252 (#7549) 2018-08-30 14:49:33 +08:00
9070bb6b86 executer: fix the last_insert_id in insert on duplicate key update (#7534) 2018-08-30 14:16:30 +08:00
4a3130216f server: fix type year has too many 0s in prepare/execute (#7525) 2018-08-30 11:28:34 +08:00
5b689e8c5b server: fix insert zero timestamp bug with prepared statement (#7506) 2018-08-28 13:36:36 +08:00
09fb68ae3b server: fix ComStmtSendLongData when data length is 0 (#7485) 2018-08-27 13:53:28 +08:00
97b60c9757 server: fix enum type flag (#7438) 2018-08-20 19:06:52 +08:00
d567770076 server: fix prepare result for zero timestamp/time/datetime (#7415) 2018-08-20 15:25:51 +08:00
0f7bc02700 docs: remove not worked MVCC api (#7400) 2018-08-17 18:31:32 +08:00
57f191408c server: fix column info for resultType/flag for enum&set type. (#7417) 2018-08-17 10:29:34 +08:00
6e7d75299d test: refine test (#7414) 2018-08-16 17:05:59 +08:00
9fc67b9a9f store TiDB server info to PD and add http api handle (#7082) 2018-08-15 12:51:00 +08:00
0fa27a4619 *: fix tests failed on Go 1.11beta (#7178)
Many of the failed tests are due to misuse of format placeholder.
2018-07-30 11:36:33 +08:00
06021c7cfe remove types.Row interface (#7170) 2018-07-27 13:45:03 +08:00
3299f860ff *: use chunk.Row instead of types.DatumRow in test files (#7139) 2018-07-24 21:45:33 +08:00
a7ae09b8e1 metrics,server: add a get_token_duration_seconds metrics (#7110)
* metrics,server: add a get_token_duration_seconds metrics
2018-07-23 14:29:19 +08:00
ce0843e4f3 binlog: fix bug in load data (#7074) 2018-07-19 12:58:57 +08:00
9cf670a324 *: cut off duration.fsp in chunk (#7043) 2018-07-17 15:36:27 +08:00
43f0c1ee70 ddl: add slow operations log to add indices, make trouble shooting easier. (#7060) 2018-07-17 09:42:58 +08:00
f9a5686f9b executor: make set system variable log shorter (#7029) 2018-07-11 14:09:22 +08:00
e28a81813c *: check the schema-validity when the DDL fails (#6797) 2018-07-09 17:35:04 +08:00
eeeb092450 server: fix binary numeric type overflow (#6922) 2018-07-09 16:46:56 +08:00
7682a74d15 *: kill one's own connection doesn't require SUPER privilege (#6954)
`kill tidb connID`, if the user is the owner of that connection, there
is no need to check the SUPER privilege.
SessionManager interface is slightly modified.
2018-07-05 20:17:17 +08:00
8db5811cb6 *: 'load data' should not use latches (#6927)
'load data' is not retryable when it meets conflicts, while latches may result in
false positive transaction conflicts. so enable latches will lead to 'load data'
abort abnormally, even there are no conflicts.
2018-07-02 11:53:12 +08:00
ef3d04087d server: fix COM_FIELD_LIST response bug that make mariadb-client crash during use db (#6918) 2018-06-28 13:40:27 +08:00
0fbb980f9b stats: refine stats delta update (#6808) 2018-06-26 13:51:23 +08:00
1fbcc10650 server,mysql: support server-side cursors (#6648)
Implement server-side cursors by handling COM_STMT_FETCH command.
The client indicates that it wants to use cursor
by setting a flag in COM_STMT_EXECUTE
Please refer to https://dev.mysql.com/doc/internals/en/com-stmt-execute.html
Subsequently, the client acquires result rows repeatedly by COM_STMT_FETCH,
which will carry stmt-id and fetch size.
Please refer to https://dev.mysql.com/doc/internals/en/com-stmt-fetch.html
This commit only support forward-only, read-only cursor
2018-06-22 16:10:08 +08:00
d2799801ae test: fix leak test (#6822)
make sure close dom/store in all test.
2018-06-12 17:14:22 +08:00
96a5109ebb types: handle NULL datum if we need convert it to string. (#6761)
* types: handle `NULL` when we need to
2018-06-06 20:15:48 +08:00
13050b4d60 server: fix fail to fetch profile by pprof (#6747) 2018-06-04 22:06:18 +08:00
c0cb89ea6b server: fix CI nil pointer panic (#6733)
server.ShutDown(ctx), it would panic if ctx is nil, because http package
calls <-ctx.Done()

replace ShutDown() with Close()
2018-06-02 22:18:13 +08:00
1a896a3b11 server: remove once.Do for HTTP server in tests (#6691) 2018-06-01 15:28:57 +08:00
93efc51b96 *: unify the connection ID format in log (#6670)
Makes tracing the events of a session easier.
2018-05-29 00:31:16 +08:00
2bcef0fe71 server: support ComChangeUser (#6623) (#6638) 2018-05-24 19:09:45 +08:00
87ce884b2e *:check max/min timestamp bound with timezone aware (#6581)
- mytime: max/min configure with UTC tz, convert to local tz during process starting, convert it to session tz before checking bound.
- time: so `check()`/`add()` need force pass `StatementContext` parameter.
- builtin_time: pass `StatementContext` from `b.ctx.sessionVars` into check/add.
- dump: also set timezone for StatementContext with UTC.
- *_test/mock: fix test case, make mock context with stmt TimeZone.
- add testcase for checkTimestamp and mytime convert timezone.
2018-05-24 15:27:38 +08:00
ac5020dc33 server: do not log write error during hand shake. (#6605)
If the handshake failed, we write error message to the connection, if the write returns error, we don't need to log it.
2018-05-22 22:34:49 +08:00
879db103b3 http: support change log level. (#6604)
So we don't need to restart the server to change the log level, useful for debug.
2018-05-22 22:04:09 +08:00
65131a44a0 server: support binary time type (#6516) 2018-05-20 11:13:02 +08:00
8a2a20e181 store/tikv: more friendly error log for WriteConflict (#6457) 2018-05-18 13:47:24 +08:00
fecd91a530 server: do not log on handshake error (#6552)
Load balancers connects to TiDB server and close immediately, we don't need to log them.
2018-05-15 13:45:11 +08:00