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

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

{panel:title=Branch: [pull/13541/head] Base: [master] : No blockers 
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/13541/head] Base: [master] : New Tests 
(55)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Snapshots 8{color} [[tests 
8|https://ci2.ignite.apache.org/viewLog.html?buildId=9535324]]
* {color:#013220}IgniteSnapshotTestSuite8: 
IgniteClusterSnapshotCheckTest.testSnapshotCheckStatusesOrder[encryption=false, 
onlyPrimary=false, snpThrdPoolSz=4] - PASSED{color}
* {color:#013220}IgniteSnapshotTestSuite8: 
IgniteClusterSnapshotCheckTest.testSnapshotCheckStatusesOrder[encryption=false, 
onlyPrimary=false, snpThrdPoolSz=1] - PASSED{color}
* {color:#013220}IgniteSnapshotTestSuite8: 
IgniteClusterSnapshotCheckTest.testSnapshotCheckStatusesOrder[encryption=false, 
onlyPrimary=true, snpThrdPoolSz=4] - PASSED{color}
* {color:#013220}IgniteSnapshotTestSuite8: 
IgniteClusterSnapshotCheckTest.testSnapshotCheckStatusesOrder[encryption=false, 
onlyPrimary=true, snpThrdPoolSz=1] - PASSED{color}
* {color:#013220}IgniteSnapshotTestSuite8: 
IgniteClusterSnapshotCheckTest.testSnapshotCheckStatusesOrder[encryption=true, 
onlyPrimary=false, snpThrdPoolSz=4] - PASSED{color}
* {color:#013220}IgniteSnapshotTestSuite8: 
IgniteClusterSnapshotCheckTest.testSnapshotCheckStatusesOrder[encryption=true, 
onlyPrimary=false, snpThrdPoolSz=1] - PASSED{color}
* {color:#013220}IgniteSnapshotTestSuite8: 
IgniteClusterSnapshotCheckTest.testSnapshotCheckStatusesOrder[encryption=true, 
onlyPrimary=true, snpThrdPoolSz=4] - PASSED{color}
* {color:#013220}IgniteSnapshotTestSuite8: 
IgniteClusterSnapshotCheckTest.testSnapshotCheckStatusesOrder[encryption=true, 
onlyPrimary=true, snpThrdPoolSz=1] - PASSED{color}

{color:#00008b}Control Utility 1{color} [[tests 
28|https://ci2.ignite.apache.org/viewLog.html?buildId=9537766]]
* {color:#013220}IgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testTwoIncrementalsSnapshotsChecksStatus[cmdHnd=cli] - 
PASSED{color}
* {color:#013220}IgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testOneSnapshotCheckStatus[cmdHnd=cli] - PASSED{color}
* {color:#013220}IgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testSnapshotCheckStatusWithParallelCreate[cmdHnd=cli] - 
PASSED{color}
* {color:#013220}IgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testTwoSnapshotsChecksStatusWithParallelCreate[cmdHnd=cli]
 - PASSED{color}
* {color:#013220}IgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testOneIncrementalSnapshotCheckStatus[cmdHnd=jmx] - 
PASSED{color}
* {color:#013220}IgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testOneIncrementalSnapshotCheckStatus[cmdHnd=cli] - 
PASSED{color}
* {color:#013220}IgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testTwoSnapshotsChecksStatus[cmdHnd=cli] - PASSED{color}
* {color:#013220}IgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testTwoIncrementalsSnapshotsChecksStatus[cmdHnd=jmx] - 
PASSED{color}
* {color:#013220}IgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testTwoSnapshotsChecksStatus[cmdHnd=jmx] - PASSED{color}
* {color:#013220}IgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testSnapshotCheckStatusWithParallelCreate[cmdHnd=jmx] - 
PASSED{color}
* {color:#013220}IgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testTwoSnapshotsChecksStatusWithParallelCreate[cmdHnd=jmx]
 - PASSED{color}
... and 17 new tests

{color:#00008b}Cache 13{color} [[tests 
1|https://ci2.ignite.apache.org/viewLog.html?buildId=9535195]]
* {color:#013220}IgniteCacheTestSuite13: 
SystemViewCacheExpiryPolicyTest.testCacheViewExpiryPolicy[factory=javax.cache.configuration.FactoryBuilder$SingletonFactory@60deefed,
 actual=SingletonFactory [expiryPlc=EternalExpiryPolicy [create=ETERNAL]]] - 
PASSED{color}

{color:#00008b}Snapshots 9{color} [[tests 
4|https://ci2.ignite.apache.org/viewLog.html?buildId=9535332]]
* {color:#013220}IgniteSnapshotTestSuite9: 
IgniteClusterSnapshotCheckStatusRollingUpgradeTest.testSnapshotStatusFeature - 
PASSED{color}
* {color:#013220}IgniteSnapshotTestSuite9: 
snapshot.IgniteClusterSnapshotListRollingUpgradeTest - PASSED{color}
* {color:#013220}IgniteSnapshotTestSuite9: 
IgniteClusterSnapshotCheckStatusRollingUpgradeTest.testClientOfTheNextVersionWithCreateInProgress
 - PASSED{color}
* {color:#013220}IgniteSnapshotTestSuite9: 
IgniteClusterSnapshotCheckStatusRollingUpgradeTest.testClientOfThePreviousVersionWithCreateInProgress
 - PASSED{color}

{color:#00008b}Control Utility (Zookeeper){color} [[tests 
14|https://ci2.ignite.apache.org/viewLog.html?buildId=9536152]]
* {color:#013220}ZookeeperIgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testRestoreSnapshotStatusAtStart[cmdHnd=jmx] - 
PASSED{color}
* {color:#013220}ZookeeperIgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testRestoreSnapshotStatusAtStart[cmdHnd=cli] - 
PASSED{color}
* {color:#013220}ZookeeperIgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testTwoSnapshotsChecksStatusWithParallelCreate[cmdHnd=cli]
 - PASSED{color}
* {color:#013220}ZookeeperIgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testOneIncrementalSnapshotCheckStatus[cmdHnd=jmx] - 
PASSED{color}
* {color:#013220}ZookeeperIgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testTwoIncrementalsSnapshotsChecksStatus[cmdHnd=jmx] - 
PASSED{color}
* {color:#013220}ZookeeperIgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testTwoSnapshotsChecksStatus[cmdHnd=jmx] - PASSED{color}
* {color:#013220}ZookeeperIgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testSnapshotCheckStatusWithParallelCreate[cmdHnd=jmx] - 
PASSED{color}
* {color:#013220}ZookeeperIgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testOneIncrementalSnapshotCheckStatus[cmdHnd=cli] - 
PASSED{color}
* {color:#013220}ZookeeperIgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testTwoSnapshotsChecksStatus[cmdHnd=cli] - PASSED{color}
* {color:#013220}ZookeeperIgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testTwoIncrementalsSnapshotsChecksStatus[cmdHnd=cli] - 
PASSED{color}
* {color:#013220}ZookeeperIgniteControlUtilityTestSuite: 
GridCommandHandlerTest.testOneSnapshotCheckStatus[cmdHnd=cli] - PASSED{color}
... and 3 new tests

{panel}
[TeamCity *--> Run :: All* 
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=9535333&buildTypeId=IgniteTests24Java8_RunAll]
{color:#ffffff}tcbot-analysis-comment chainBuildId=9535333 
rerunBuildIds=none{color}

> VisorSnapshotStatusTask returns empty result for restoring snapshot until 
> snapshot check is completed
> -----------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-19034
>                 URL: https://issues.apache.org/jira/browse/IGNITE-19034
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Ilya Shishkov
>            Assignee: Vladimir Steshin
>            Priority: Major
>              Labels: iep-43, ise
>         Attachments: SnapshotStatusReproducerTest.patch
>
>          Time Spent: 6h 50m
>  Remaining Estimate: 0h
>
> Currently, snapshot check is performed under the hood during restoring of a 
> snapshot. For big snapshots check operation execution can take a long time.
> In such case, if you call two similar commands, they will return different 
> results:
> Deprecated command _restore --status_ shows, that snapshot operation is in 
> progress:
> {noformat}
> Command [SNAPSHOT] started
> Arguments: --snapshot restore test_snapshot --status 
> --------------------------------------------------------------------------------
> Command deprecated. Use '--snapshot status' instead.
> Snapshot cache group restore operation is running [snapshot=test_snapshot]
> Command [SNAPSHOT] finished with code: 0
> {noformat}
> But actual command _--snapshot status_ does not show that any snapshot 
> operation is running:
> {noformat}
> Command [SNAPSHOT] started
> Arguments: --snapshot status 
> --------------------------------------------------------------------------------
> There is no create or restore snapshot operation in progress.
> Command [SNAPSHOT] finished with code: 0
> {noformat}
> {{VisorSnapshotStatusTask.java}} rely on snapshot restore metrics[1]. This 
> metrics are extracted from {{SnapshotRestoreProcess#lastOpCtx}} [2], which is 
> updated in {{SnapshotRestoreProcess#prepare}} [3], _but this method called 
> after snapshot check is finished_ [4, 5].
> Here is a reproducer: [^SnapshotStatusReproducerTest.patch] 
> Links:
> # 
> https://github.com/apache/ignite/blob/a8e16899514348ed7b9404e7d122ed430f8e1acd/modules/core/src/main/java/org/apache/ignite/internal/visor/snapshot/VisorSnapshotStatusTask.java#L141
> # 
> https://github.com/apache/ignite/blob/a8e16899514348ed7b9404e7d122ed430f8e1acd/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/SnapshotRestoreProcess.java#L245
> # 
> https://github.com/apache/ignite/blob/a8e16899514348ed7b9404e7d122ed430f8e1acd/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/SnapshotRestoreProcess.java#L670
> # 
> https://github.com/apache/ignite/blob/a8e16899514348ed7b9404e7d122ed430f8e1acd/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/SnapshotRestoreProcess.java#L414
> # 
> https://github.com/apache/ignite/blob/a8e16899514348ed7b9404e7d122ed430f8e1acd/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/SnapshotRestoreProcess.java#L205



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to