Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Won't Do
-
1.0.8
-
None
-
centos 7
Description
cpimport does not handle interruptions properly if the input is the command line
[root@dev2 ~]# cpimport lkqd_stats lkqd_daily_19530106 -s '\t' -E '"'
Locale is : C
Column delimiter : \t
Enclosed by Character : "
Using table OID 3160 as the default JOB ID
Input file(s) will be read from : STDIN
Job description file : /usr/local/mariadb/columnstore/data/bulk/tmpjob/3160_D20170508_T155318_S507814_Job_3160.xml
Log file for this job: /usr/local/mariadb/columnstore/data/bulk/log/Job_3160.log
2017-05-08 15:53:18 (24603) INFO : successfully loaded job file /usr/local/mariadb/columnstore/data/bulk/tmpjob/3160_D20170508_T155318_S507814_Job_3160.xml
2017-05-08 15:53:18 (24603) INFO : Job file loaded, run time for this step : 0.039773 seconds
2017-05-08 15:53:18 (24603) INFO : PreProcessing check starts
2017-05-08 15:53:20 (24603) INFO : PreProcessing check completed
2017-05-08 15:53:20 (24603) INFO : preProcess completed, run time for this step : 1.85116 seconds
2017-05-08 15:53:20 (24603) INFO : No of Read Threads Spawned = 1
2017-05-08 15:53:20 (24603) INFO : Reading input from STDIN to import into table lkqd_stats.lkqd_daily_19530106...
2017-05-08 15:53:20 (24603) INFO : No of Parse Threads Spawned = 3
^CReceived Control-C to terminate the process...
2017-05-08 16:47:17 (24603) INFO : Bulkload Parse (thread 2) Stopped parsing Tables. BulkLoad::parse() responding to job termination
2017-05-08 16:47:17 (24603) INFO : Bulkload Parse (thread 0) Stopped parsing Tables. BulkLoad::parse() responding to job termination
2017-05-08 16:47:17 (24603) INFO : Bulkload Parse (thread 1) Stopped parsing Tables. BulkLoad::parse() responding to job termination
Received SIGTERM to terminate the process...
Killed
if cpimport is hung and then you enter ^D it finishes.
cpimport should handle being interrupted the same way it does if the input is a file.