[MCOL-5594] Interactive "mcs cluster stop" command for CMAPI Created: 2023-10-15  Updated: 2024-01-26

Status: In Progress
Project: MariaDB ColumnStore
Component/s: cmapi
Affects Version/s: None
Fix Version/s: 23.10.1

Type: New Feature Priority: Major
Reporter: Roman Assignee: Alan Mologorsky
Resolution: Unresolved Votes: 0
Labels: cmapi

Issue Links:
Relates
relates to MCOL-5105 Reduced systemd timeouts results in c... Closed
relates to MCOL-5617 Add working timeout for non interacti... Open
Sprint: 2023-11, 2023-12

 Description   

Right now `mcs cluster stop` command has a fixed 5 minute timeout waiting for transaction to finish/rollback, For better UX `mcs cluster stop` must interactively ask a user to initiate force shutdown after a minute of waiting for the cluster to stop. There must be parameters to the command to set the timeout and enable force shutdown w/o confirmation, e.g.

```
mcs cluster shutdown
... after a minute
There were data changing operations running on the cluster that are now rolling back. Do you want to initiate a force shutdown?
!!! Force shutdown might affect the availability of tables used by the mentioned operations !!!


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