You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladislav Novikov (Jira)" <ji...@apache.org> on 2025/05/28 16:58:00 UTC
[jira] [Updated] (IGNITE-25518) Snapshot restore fails with IllegalStateException when duplicate cache group names are provided in the collection
[ https://issues.apache.org/jira/browse/IGNITE-25518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladislav Novikov updated IGNITE-25518:
---------------------------------------
Description:
When calling {{restoreSnapshot}} and passing a collection of cache group names that contains *duplicate entries* , an {{IllegalStateException}} is thrown with the message:
{{(err) Failed to notify listener (is grid stopped?) [fut=GridFutureAdapter [ignoreInterrupts=false, state=DONE, res=o.a.i.i.processors.cache.persistence.snapshot.SnapshotPartitionsVerifyTaskResult@65754192, hash=1714739685], lsnr=o.a.i.i.processors.cache.persistence.snapshot.SnapshotRestoreProcess$$Lambda$1276/0x00000008008cac40@43ec83dc, err=Duplicate key 280828085 (attempted merging values testCacheGrp and testCacheGrp)]java.lang.IllegalStateException: Duplicate key 280828085 (attempted merging values testCacheGrp and testCacheGrp)}}
and the snapshot restore procedure freezes.
To reproduce the error, apply the patch attached here to master and run {{{}SnapshotCompatibilityTest#testSnapshotRestore{}}}.
was:
When calling {{restoreSnapshot}} and passing a collection of cache group names that contains *duplicate entries* , an {{IllegalStateException}} is thrown with the message:
{{{}(err) Failed to notify listener (is grid stopped?) [fut=GridFutureAdapter [ignoreInterrupts=false, state=DONE, res=o.a.i.i.processors.cache.persistence.snapshot.SnapshotPartitionsVerifyTaskResult@65754192, hash=1714739685], lsnr=o.a.i.i.processors.cache.persistence.snapshot.SnapshotRestoreProcess$$Lambda$1276/0x00000008008cac40@43ec83dc, err=Duplicate key 280828085 (attempted merging values testCacheGrp and testCacheGrp)]java.lang.IllegalStateException: Duplicate key 280828085 (attempted merging values testCacheGrp and testCacheGrp)
{}}}and the snapshot restore procedure freezes.
To reproduce the error, apply the patch attached here to master and run {{{}SnapshotCompatibilityTest#testSnapshotRestore{}}}.
> Snapshot restore fails with IllegalStateException when duplicate cache group names are provided in the collection
> -----------------------------------------------------------------------------------------------------------------
>
> Key: IGNITE-25518
> URL: https://issues.apache.org/jira/browse/IGNITE-25518
> Project: Ignite
> Issue Type: Task
> Reporter: Vladislav Novikov
> Priority: Major
> Fix For: 2.18
>
> Attachments: reproducer.patch
>
>
> When calling {{restoreSnapshot}} and passing a collection of cache group names that contains *duplicate entries* , an {{IllegalStateException}} is thrown with the message:
> {{(err) Failed to notify listener (is grid stopped?) [fut=GridFutureAdapter [ignoreInterrupts=false, state=DONE, res=o.a.i.i.processors.cache.persistence.snapshot.SnapshotPartitionsVerifyTaskResult@65754192, hash=1714739685], lsnr=o.a.i.i.processors.cache.persistence.snapshot.SnapshotRestoreProcess$$Lambda$1276/0x00000008008cac40@43ec83dc, err=Duplicate key 280828085 (attempted merging values testCacheGrp and testCacheGrp)]java.lang.IllegalStateException: Duplicate key 280828085 (attempted merging values testCacheGrp and testCacheGrp)}}
> and the snapshot restore procedure freezes.
> To reproduce the error, apply the patch attached here to master and run {{{}SnapshotCompatibilityTest#testSnapshotRestore{}}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)