You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What did you do?
I imported sample data in 8 threads into TiDB using LOAD DATA LOCAL INFILE (script called from an xargs on ls):
#!/bin/sh
echo $1
mysql bikeshare -e "LOAD DATA LOCAL INFILE '$1' INTO TABLE trips FIELDS TERMINATED BY ',' ENCLOSED BY '\"' LINES TERMINATED BY '\r\n' (duration, start_date, end_date, start_station_number, start_station, end_station_number, end_station, bike_number, member_type)";
I was trying to see the status of the files in SHOW PROCESSLIST or SHOW FULL PROCESSLIST:
It looks like the Time and Info columns are not updated for LOAD DATA LOCAL INFILE. There is an existing bug report on State not updating. For a normal select query, Time and Info update fine.
What did you see instead?
Same behavior as a long-running select. Here is a MySQL 8.0 example (it is useful to see info populated):
mysql [localhost] {msandbox} ((none)) > show processlist;
+----+-----------------+-----------+-----------+---------+------+------------------------+------------------------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+-----------------+-----------+-----------+---------+------+------------------------+------------------------------------------------------------------------------------------------------+
| 4 | event_scheduler | localhost | NULL | Daemon | 1439 | Waiting on empty queue | NULL |
| 37 | msandbox | localhost | NULL | Query | 0 | starting | show processlist |
| 55 | msandbox | localhost | bikeshare | Query | 439 | query end | LOAD DATA LOCAL INFILE '2016Q3-capitalbikeshare-tripdata.csv' INTO TABLE trips FIELDS TERMINATED BY |
| 60 | msandbox | localhost | bikeshare | Query | 439 | executing | LOAD DATA LOCAL INFILE '2017Q3-capitalbikeshare-tripdata.csv' INTO TABLE trips FIELDS TERMINATED BY |
| 62 | msandbox | localhost | bikeshare | Query | 439 | executing | LOAD DATA LOCAL INFILE '2017Q2-capitalbikeshare-tripdata.csv' INTO TABLE trips FIELDS TERMINATED BY |
+----+-----------------+-----------+-----------+---------+------+------------------------+------------------------------------------------------------------------------------------------------+
5 rows in set (0.00 sec)
What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
I'm running a branch which has tracing. I built it today:
mysql> select tidb_version()\G
*************************** 1. row ***************************
tidb_version(): Release Version: rc1-3104-g51046aa7
Git Commit Hash: 51046aa717e782d3843ae2c91f0a0952de05a4e5
Git Branch: tidb_tracing_prototype
UTC Build Time: 2018-08-23 08:21:06
GoVersion: go version go1.10.1 linux/amd64
Race Enabled: false
TiKV Min Version: 2.1.0-alpha.1-ff3dd160846b7d1aed9079c389fc188f7f5ea13e
1 row in set (0.00 sec)
The text was updated successfully, but these errors were encountered:
Please answer these questions before submitting your issue. Thanks!
I imported sample data in 8 threads into TiDB using
LOAD DATA LOCAL INFILE
(script called from an xargs on ls):I was trying to see the status of the files in
SHOW PROCESSLIST
orSHOW FULL PROCESSLIST
:It looks like the
Time
andInfo
columns are not updated forLOAD DATA LOCAL INFILE
. There is an existing bug report onState
not updating. For a normal select query,Time
andInfo
update fine.Same behavior as a long-running select. Here is a MySQL 8.0 example (it is useful to see
info
populated):tidb-server -V
or runselect tidb_version();
on TiDB)?I'm running a branch which has tracing. I built it today:
The text was updated successfully, but these errors were encountered: