Bug 1059489 - Preload with async cache store is not efficient
Summary: Preload with async cache store is not efficient
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: CR1
: 6.2.1
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks: 1060199 1075061
TreeView+ depends on / blocked
 
Reported: 2014-01-29 23:38 UTC by Mircea Markus
Modified: 2023-04-01 08:00 UTC (History)
4 users (show)

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.
Clone Of:
: 1060199 (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-3957 0 Major Resolved Preload with async cache store is not efficient 2014-05-27 00:13:26 UTC

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


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