You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ignite TC Bot (Jira)" <ji...@apache.org> on 2021/12/22 09:03:00 UTC

[jira] [Commented] (IGNITE-16177) Snapshot restore operation may hang if cache contains "empty" partitions

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

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

{panel:title=Branch: [pull/9679/head] Base: [master] : No blockers found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/9679/head] Base: [master] : New Tests (1)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Snapshots{color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=6335238]]
* {color:#013220}IgniteSnapshotTestSuite: IgniteClusterSnapshotRestoreSelfTest.testRestoreWithEmptyPartitions[Encryption is disabled] - PASSED{color}

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

> Snapshot restore operation may hang if cache contains "empty" partitions
> ------------------------------------------------------------------------
>
>                 Key: IGNITE-16177
>                 URL: https://issues.apache.org/jira/browse/IGNITE-16177
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.12
>            Reporter: Pavel Pereslegin
>            Assignee: Pavel Pereslegin
>            Priority: Blocker
>              Labels: iep-43
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The snapshot restore may hang when some of the cache group partitions have not been physically created (for example, there is not enough data in the cache).
> Reproducer
> {code:java}
> public class IgniteClusterSnapshotRestoreEmptyPartsTest extends IgniteClusterSnapshotRestoreBaseTest {
>     @Test
>     public void testRestoreWithEmptyPartition() throws Exception {
>         // Cache with 1024 partitions.
>         CacheConfiguration<Integer, Object> cacheCfg1 = new CacheConfiguration<>(CACHE1);
>         // Add only 10 keys (only 10 partitions will be created on the disk).
>         IgniteEx ignite = startGridsWithCache(1, 10, Integer::new, cacheCfg1);
>         // Snapshot contains only 10 (out of 1024 "affinity" partitions).
>         ignite.snapshot().createSnapshot(SNAPSHOT_NAME).get(TIMEOUT);
>         ignite.cache(CACHE1).destroy();
>         // The restore operation hangs during the "preload" phase.
>         ignite.snapshot().restoreSnapshot(SNAPSHOT_NAME, null).get(TIMEOUT);
>     }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)