[ 
https://issues.apache.org/jira/browse/IGNITE-15067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17545832#comment-17545832
 ] 

Ignite TC Bot commented on IGNITE-15067:
----------------------------------------

{panel:title=Branch: [pull/10052/head] Base: [master] : No blockers 
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/10052/head] Base: [master] : New Tests 
(7)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Control Utility (Zookeeper){color} [[tests 
1|https://ci.ignite.apache.org/viewLog.html?buildId=6606753]]
* {color:#013220}ZookeeperIgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testSnapshotCreateCheckAndRestoreCustomDir - 
PASSED{color}

{color:#00008b}Snapshots{color} [[tests 
4|https://ci.ignite.apache.org/viewLog.html?buildId=6605319]]
* {color:#013220}IgniteSnapshotTestSuite: 
IgniteClusterSnapshotRestoreSelfTest.testClusterSnapshotRestoreFromCustomDir[Encryption=true]
 - PASSED{color}
* {color:#013220}IgniteSnapshotTestSuite: 
IgniteClusterSnapshotHandlerTest.testHandlerSnapshotLocation[Encryption=false] 
- PASSED{color}
* {color:#013220}IgniteSnapshotTestSuite: 
IgniteClusterSnapshotHandlerTest.testHandlerSnapshotLocation[Encryption=true] - 
PASSED{color}
* {color:#013220}IgniteSnapshotTestSuite: 
IgniteClusterSnapshotRestoreSelfTest.testClusterSnapshotRestoreFromCustomDir[Encryption=false]
 - PASSED{color}

{color:#00008b}Control Utility{color} [[tests 
2|https://ci.ignite.apache.org/viewLog.html?buildId=6605276]]
* {color:#013220}IgniteControlUtilityTestSuite: 
GridCommandHandlerWithSSLTest.testSnapshotCreateCheckAndRestoreCustomDir - 
PASSED{color}
* {color:#013220}IgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testSnapshotCreateCheckAndRestoreCustomDir - 
PASSED{color}

{panel}
[TeamCity *--> Run :: All* 
Results|https://ci.ignite.apache.org/viewLog.html?buildId=6605343&buildTypeId=IgniteTests24Java8_RunAll]

> Add custom destination path to the snapshost API
> ------------------------------------------------
>
>                 Key: IGNITE-15067
>                 URL: https://issues.apache.org/jira/browse/IGNITE-15067
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Maxim Muzafarov
>            Assignee: Pavel Pereslegin
>            Priority: Major
>              Labels: iep-43, ise
>             Fix For: 2.14
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The default configuration path obtains from the IgniteConfiguration. However, 
> in some circumstances, it is good to set this destination path at runtime. 
> This path must be configured relatively in the node working directory and 
> must be accessible from the security point of view.
> h3. Proposed API
> h4. Java (internal)
> {code:java}
> // New non-null getter in SnapshotHandlerContext to get the full path to the 
> snapshot files.
> public File snapshotDirectory()
> // Snapshot creation example.
> snpMgr.createSnapshot("snpName", "/opt/snapshots")
> // Snapshot validation example.
> snpMgr.checkSnapshot("snpName", "/opt/snapshots")
> // Snapshot restore example.
> snpMgr.restoreSnapshot("snpName", "/opt/snapshots"){code}
> h4. Control script
> *create* command syntax
> {noformat}
> control.(sh|bat) --snapshot create snapshot_name [--dest path] [--sync]
> Parameters:
>   snapshot_name  - Snapshot name.
>   --dest path    - Path to the directory where the snapshot will be saved. If 
> not specified, the default configured snapshot directory will be used.
>   --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}
> *check* command syntax
> {noformat}
> control.(sh|bat) --snapshot check snapshot_name [--src path]
> Parameters:
>   snapshot_name  - Snapshot name.
>   --src path     - Path to the directory where the snapshot files are 
> located. If not specified, the default configured snapshot directory will be 
> used.
> {noformat}
> *restore* command syntax
> {noformat}
> control.(sh|bat) --snapshot restore snapshot_name --start [--groups 
> group1,...groupN] [--src path] [--sync]
> Parameters:
>   snapshot_name              - Snapshot name.
>   --groups group1,...groupN  - Cache group names.
>   --src path                 - Path to the directory where the snapshot files 
> are located. If not specified, the default configured snapshot directory will 
> be used.
>   --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}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to