[
https://issues.apache.org/jira/browse/IGNITE-15450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17481846#comment-17481846
]
Pavel Pereslegin edited comment on IGNITE-15450 at 2/16/22, 8:17 AM:
---------------------------------------------------------------------
The final solution is to add a "wait" option to wait for the entire operation
to complete.
*Create*
{noformat}
Create cluster snapshot:
control.(sh|bat) --snapshot create snapshot_name [--sync]
Parameters:
snapshot_name - Snapshot name.
sync - Run the operation synchronously, the command will wait
for the entire operation to complete. Otherwise, it will be performed in the
background, and the command will immediately return control.
{noformat}
*Restore*
{noformat}
Restore snapshot:
control.(sh|bat) --snapshot restore snapshot_name --start [--groups
group1,...groupN] [--sync]
Parameters:
snapshot_name - Snapshot name.
sync - Run the operation synchronously, the command will
wait for the entire operation to complete. Otherwise, it will be performed in
the background, and the command will immediately return control.
group1,...groupN - Cache group names.
{noformat}
was (Author: xtern):
The final solution is to add a "wait" option to wait for the entire operation
to complete.
*Create*
{noformat}
Create cluster snapshot:
control.(sh|bat) --snapshot create snapshot_name [--sync]
Parameters:
snapshot_name - Snapshot name.
sync - Wait for the entire operation to complete. Otherwise,
the operation will be performed in the background, and the command will
immediately return control.
{noformat}
*Restore*
{noformat}
Restore snapshot:
control.(sh|bat) --snapshot restore snapshot_name --start [--groups
group1,...groupN] [--sync]
Parameters:
snapshot_name - Snapshot name.
sync - Wait for the entire operation to complete. Otherwise,
the operation will be performed in the background, and the command will
immediately return control.
group1,...groupN - Cache group names.
{noformat}
> Add special option to run snapshot commands (create/restore) synchronously.
> ---------------------------------------------------------------------------
>
> Key: IGNITE-15450
> URL: https://issues.apache.org/jira/browse/IGNITE-15450
> Project: Ignite
> Issue Type: Improvement
> Components: control.sh
> Reporter: Pavel Pereslegin
> Assignee: Pavel Pereslegin
> Priority: Major
> Labels: iep-43, ise
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The process of restoring a snapshot fails if at least one of the restored
> caches already exists.
> However, when starting this operation via control.sh, the command returns a
> successful startup status, which can be confusing for users.
> We can improve this behavior by adding a separate check for existing caches
> when starting the restore operation and displaying a user-friendly error
> message.
> An *alternative* option is to start a snapshot restore operation
> synchronously.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)