[MCOL-1464] CDC adapter: mxs_adapter can't be shut down properly Created: 2018-06-11  Updated: 2023-10-26  Resolved: 2018-09-10

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Elena Kotsinova (Inactive) Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by MCOL-1594 mxs_adapter requires -t to gracefully... Closed

 Description   

Exiting from the process doesn't work properly.
1. User starts the process.
2. User wants to finish the process with CTRL+C

Result:
Message "Shutting down..." is displayed and it stays forever.
Only way to exit the process is to kill it.
Also killing the process leaves table locked by mcsapi and table can't be deleted or truncated.

Expected:
Process must shut down properly and release the table lock.



 Comments   
Comment by markus makela [ 2018-06-14 ]

The Shutting down... message tells that the adapter is trying to do a controlled shutdown. The program should exit the next time the CDC connector returns a timeout error.

What is the exact command line used in this case?

Comment by Elena Kotsinova (Inactive) [ 2018-06-14 ]

mxs_adapter -c /etc/Columnstore.xml -u cdcuser -p cdcpassword -h localhost -P 4001 cdc_eli bst

It never finished. At least in observed time. No idea how long to wait for timeout.

Comment by markus makela [ 2018-06-14 ]

Does it work if you add the -t 5 option? If it does, I think it might be a bug caused by commit 5ed54d5f839442c17ad0b7aa5c9ea9ef3728ee17.

Comment by markus makela [ 2018-06-14 ]

Pushed commit d4d76cc3ac7568606bf9c2b7fdefcfac1c6a46c5 to develop-1.1-markusjm. This should fix the bug.

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