[ https://issues.apache.org/jira/browse/IGNITE-14794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amelchev Nikita updated IGNITE-14794: ------------------------------------- Fix Version/s: 2.13 (was: 2.12) > Add JMX command and metrics for automatic snapshot restore operation. > ---------------------------------------------------------------------- > > Key: IGNITE-14794 > URL: https://issues.apache.org/jira/browse/IGNITE-14794 > Project: Ignite > Issue Type: Improvement > Reporter: Pavel Pereslegin > Assignee: Pavel Pereslegin > Priority: Major > Labels: iep-43, ise > Fix For: 2.13 > > Time Spent: 10m > Remaining Estimate: 0h > > Add JMX command to restore a cache group from the snapshot. > Suggested methods > {code:java} > @MXBeanDescription("Restore cluster-wide snapshot.") > public void restoreSnapshot( > @MXBeanParameter(name = "snpName", description = "Snapshot name.") > String name, > @MXBeanParameter(name = "cacheGroupNames", description = "Optional > comma-separated list of cache group names.") String cacheGroupNames); > @MXBeanDescription("Cancel previously started snapshot restore > operation.") > public void cancelSnapshotRestore(@MXBeanParameter(name = "snpName", > description = "Snapshot name.") String name); > {code} > Since the automatic snapshot restore operation can take a long time, we must > be able to track its progress using metrics. > Suggested metrics: > {noformat} > start time > partitions (processed/total) > bytes (processed/total) > end time > {noformat} > > Suggested status command output. > [in progress] > {noformat} > Restore operation for snapshot "snapshot_25052021" is still in progress > (requestId=0e2d8c06-d44a-4ade-91bf-2b84b367499a). > Progress: 100% completed (66/66 partitions, 3.8/3.8 MB) > Started: 2021-10-05 15:47:47.942 > Cache groups: default > Node test1: 100% completed (33/33 partitions, 1.9/1.9 MB) > Node test0: 100% completed (33/33 partitions, 1.9/1.9 MB) > {noformat} > [error] > {noformat} > Restore operation for snapshot "snapshot_25052021" failed > (requestId=b9b312f5-ba34-40e9-bb94-35daacd552c0). > Error: Operation has been canceled by the user. > Started: 2021-10-05 15:51:52.255 > Finished: 2021-10-05 15:51:52.782 > Cache groups: default > Node test1: 100% completed (33/33 partitions, 1.9/1.9 MB) > Node test0: 100% completed (33/33 partitions, 1.9/1.9 MB){noformat} > [finished] > {noformat} > Restore operation for snapshot "snapshot_25052021" completed successfully > (requestId=6adeea86-1ee2-4664-8d7d-3383a484a00a). > Progress: 100% completed (66/66 partitions, 3.8/3.8 MB) > Started: 2021-10-05 15:53:03.352 > Finished: 2021-10-05 15:53:03.443 > Cache groups: default > Node test1: 100% completed (33/33 partitions, 1.9/1.9 MB) > Node test0: 100% completed (33/33 partitions, 1.9/1.9 MB){noformat} > [missing snapshot name] > {noformat} > No information about restoring snapshot "snapshot_MISSING" is > available.{noformat} > > -- This message was sent by Atlassian Jira (v8.20.1#820001)