[MCOL-708] cpimport hangs if the input source is the command line and it is interrupted Created: 2017-05-09  Updated: 2022-11-05  Resolved: 2022-11-05

Status: Closed
Project: MariaDB ColumnStore
Component/s: cpimport
Affects Version/s: 1.0.8
Fix Version/s: Icebox

Type: Bug Priority: Minor
Reporter: Allan Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Environment:

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.



 Comments   
Comment by Todd Stoffel (Inactive) [ 2022-11-05 ]

This item is being closed because it was well passed the expiration date with no activity. If you suspect this was done in error please create a new ticket.

Generated at Thu Feb 08 02:23:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.