[MCOL-861] Add way to script "cancel" (or "wait") for "mcsadmin suspendDatabaseWrites y" command Created: 2017-08-07  Updated: 2023-10-26  Resolved: 2017-11-03

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

Type: New Feature Priority: Major
Reporter: Chris Calender (Inactive) Assignee: Todd Stoffel (Inactive)
Resolution: Not a Bug Votes: 0
Labels: None


 Description   

If one tries to do run "mcsadmin suspendDatabaseWrites y" during a large insertion, it will ask to either to 'cancel' or 'wait'.

It would be great if we could add a way to be able to script it so that one could feed "Cancel" (or "Wait") to the command.



 Comments   
Comment by David Thompson (Inactive) [ 2017-08-08 ]

mcsadmin suspendDatabaseWrites y << EOF
Cancel
EOF

Comment by David Thompson (Inactive) [ 2017-08-08 ]

Will leave this open as it would be nice to have a cleaner parameter to control this.

Comment by David Thompson (Inactive) [ 2017-11-03 ]

This can be achieved with a shell wrapper to redirect input to stdin, for examples see here:
http://www.linuxjournal.com/content/bash-input-redirection

I'm not sure there is value in enhancing the command further since this will achieve the desired outcome?

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