Bug 989927 - Stored entries are deleted from table in rebalance
Summary: Stored entries are deleted from table in rebalance
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER4
: 6.2.0
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks: 1017190
TreeView+ depends on / blocked
 
Reported: 2013-07-30 07:41 UTC by ksuzumur
Modified: 2023-04-01 08:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1044864 (view as bug list)
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-3613 0 Major Resolved Stored entries are deleted from table in rebalance 2018-02-23 09:16:21 UTC

Description ksuzumur 2013-07-30 07:41:19 UTC
Created attachment 780385 [details]
Reproduce setting : clustered.xml

Description of problem:
When passivation value is false, stored entries are deleted from table in rebalance.

clustered.xml
------------
<distributed-cache name="myCache" mode="SYNC" start="EAGER">
<locking isolation="READ_COMMITTED" acquire-timeout="30000" concurrency-level="1000" striping="false"/>
<transaction mode="NONE"/>
<eviction strategy="LIRS" max-entries="10000"/>
<string-keyed-jdbc-store datasource="java:jboss/datasources/InfinispanDS" passivation="false" preload="true" purge="false" shared="true" fetch-state="false">                
...

Version-Release number of selected component (if applicable):
JDG 6.1

How reproducible:
I will attache the clustered.xml and trace logs.

Steps to Reproduce:
1.start node1 
2.put 300 entries 
3.start node2
  check entries:
  select count(*) from table;
  300
4.start node3
  check entries:
  select count(*) from table;
  0

Actual results:
In step 4, number of entries are 0 in DB table.

Expected results:
In step 4, number of entries are 300 in DB table.


Additional info:

Comment 3 JBoss JIRA Server 2013-10-09 16:15:14 UTC
William Burns <wburns> updated the status of jira ISPN-3613 to Coding In Progress

Comment 4 JBoss JIRA Server 2013-10-10 01:55:59 UTC
William Burns <wburns> made a comment on jira ISPN-3613

I am unable to reproduce this with the latest code base.  Digging further it appears this was fixed by ISPN-2903.

Side note: the xml file provided is not accurate as the log shows L1 was enabled for the cache, but the xml didn't have it enabled.

But it looks like this is caused because eviction was enabled and a rehash causes old values to be evicted.  When it was evicted it would notify the cache loader that it was removed with ISPN-2903 and would then remove it from the store as well.

I will add a test that confirms this.

Also I need to verify if when sharing is disabled if it properly evicts the entries from the cache store.

Comment 5 JBoss JIRA Server 2013-10-10 01:56:29 UTC
William Burns <wburns> made a comment on jira ISPN-3613

I am unable to reproduce this with the latest code base.  Digging further it appears this was fixed by ISPN-2903.

Side note: the xml file provided is not accurate as the log shows L1 was enabled for the cache, but the xml didn't have it enabled.

But it looks like this is caused because eviction was enabled and a rehash causes old values to be evicted.  When it was evicted it would notify the cache loader that it was removed with ISPN-2903 and would then remove it from the store as well.

I will add a test that confirms this.

Also I need to verify if when sharing is disabled if it properly removes the entries from the cache store.

Comment 6 JBoss JIRA Server 2013-10-10 16:30:31 UTC
William Burns <wburns> made a comment on jira ISPN-3613

This JIRA can probably be closed as Duplicate when tests are merged in.


Note You need to log in before you can comment on or make changes to this bug.