Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1059489

Summary: Preload with async cache store is not efficient
Product: [JBoss] JBoss Data Grid 6 Reporter: Mircea Markus <mmarkus>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED UPSTREAM QA Contact: Martin Gencur <mgencur>
Severity: high Docs Contact:
Priority: high    
Version: 6.1.0CC: jdg-bugs, ttarrant, vjuranek, wfink
Target Milestone: CR1   
Target Release: 6.2.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Configuring an asynchronous cache store with 'preload' enabled leads to pre-loading each entry in the store in a loop, each entry being loaded through a store read. This has been fixed. Pre-loading entries from a cache store is now more efficient and does not require loading each entry through a store read.
Story Points: ---
Clone Of:
: 1060199 (view as bug list) Environment:
Last Closed: 2025-02-10 03:34:59 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: 1060199, 1075061    

Description Mircea Markus 2014-01-29 23:38:42 UTC
Description of problem:
Configuring on a AdvancedCacheLoader preload=true and asyn=true cause it to load each entry in the store in a loop, each entry being loaded through an store read.
This is caused by the way loadAll is implemented in the AsynLoader: in order to enforce consistency with whatever is in memory it does some special handling. The thing is, though, that we don't need this advanced async loader logic during the initial preload, as the async cache loader is empty.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
This appeared as a critical problem for a client.

Comment 2 Dan Berindei 2014-01-30 12:17:49 UTC
Pull request integrated: https://github.com/infinispan/jdg/pull/16

Comment 7 Red Hat Bugzilla 2025-02-10 03:34:59 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.