[
https://issues.apache.org/jira/browse/IGNITE-5553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Chugunov updated IGNITE-5553:
------------------------------------
Affects Version/s: 2.1
Priority: Critical (was: Major)
Fix Version/s: 2.2
Description:
h2. Notes
When IgniteSet is restored from persistence, size of set is always 0, [link to
test
history|http://ci.ignite.apache.org/project.html?projectId=Ignite20Tests&testNameId=-7043871603266099589&tab=testDetails]
h2. Detailed description
Unlike *IgniteQueue* which uses separate cache key to store its size
*IgniteSet* stores it in a field of some class.
Test from link shows very clearly that after restoring memory state from PDS
all set values are restored correctly but size is lost.
h2. Proposed solution
One possible solution might be to do the same thing as *IgniteQueue* does: size
of *IgniteSet* must be stored is cache instead of volatile in-memory fields of
random classes.
was:
When IgniteSet is restored from persistence, size of set is always 0.
http://ci.ignite.apache.org/viewLog.html?buildId=675215&tab=buildResultsDiv&buildTypeId=Ignite20Tests_IgnitePds2#testNameId-7043871603266099589
Reproducable locally (stable)
{noformat}
junit.framework.AssertionFailedError:
Expected :100
Actual :0
<Click to see difference>
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.failNotEquals(Assert.java:329)
at junit.framework.Assert.assertEquals(Assert.java:78)
at junit.framework.Assert.assertEquals(Assert.java:234)
at junit.framework.Assert.assertEquals(Assert.java:241)
at junit.framework.TestCase.assertEquals(TestCase.java:409)
at
org.apache.ignite.internal.processors.cache.persistence.IgnitePersistentStoreDataStructuresTest.testSet(IgnitePersistentStoreDataStructuresTest.java:195)
{noformat}
Component/s: persistence
data structures
Issue Type: Bug (was: Test)
> Ignite PDS 2: IgnitePersistentStoreDataStructuresTest testSet assertion error
> -----------------------------------------------------------------------------
>
> Key: IGNITE-5553
> URL: https://issues.apache.org/jira/browse/IGNITE-5553
> Project: Ignite
> Issue Type: Bug
> Components: data structures, persistence
> Affects Versions: 2.1
> Reporter: Dmitriy Pavlov
> Priority: Critical
> Labels: test-fail
> Fix For: 2.2
>
>
> h2. Notes
> When IgniteSet is restored from persistence, size of set is always 0, [link
> to test
> history|http://ci.ignite.apache.org/project.html?projectId=Ignite20Tests&testNameId=-7043871603266099589&tab=testDetails]
> h2. Detailed description
> Unlike *IgniteQueue* which uses separate cache key to store its size
> *IgniteSet* stores it in a field of some class.
> Test from link shows very clearly that after restoring memory state from PDS
> all set values are restored correctly but size is lost.
> h2. Proposed solution
> One possible solution might be to do the same thing as *IgniteQueue* does:
> size of *IgniteSet* must be stored is cache instead of volatile in-memory
> fields of random classes.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)