Bug 989927

Summary: Stored entries are deleted from table in rebalance
Product: [JBoss] JBoss Data Grid 6 Reporter: ksuzumur
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED UPSTREAM QA Contact: Martin Gencur <mgencur>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: jdg-bugs
Target Milestone: ER4   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1044864 (view as bug list) Environment:
Last Closed: 2025-02-10 03:28:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1017190    

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.

Comment 9 Red Hat Bugzilla 2025-02-10 03:28:13 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.