Bug 842921 - Clarify effect of Passivation configuration option
Summary: Clarify effect of Passivation configuration option
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Documentation
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 6.0.1
Assignee: Misha H. Ali
QA Contact: ecs-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-24 23:03 UTC by Sanne Grinovero
Modified: 2012-09-20 03:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Instance Name: Not Defined Build: CSProcessor Builder Version 1.4 Build Filter: null Build Name: Build Date: 15-06-2012 10:17:05
Last Closed: 2012-09-20 03:48:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Sanne Grinovero 2012-07-24 23:03:47 UTC
Paragraph 8.2.6.1 currently reads:

8.2.6.1. The Cache Loader and Cache Passivation
In JBoss Data Grid, a cache loader can be used to enforce the passivation of entries and to activate eviction in a cache. Whether passivation mode or activation mode are used, the configured cache loader both reads from and writes to the data store.
When passivation is enabled in JBoss Data Grid, after the modification, addition or removal of an element is carried out the cache loader steps in to persist the changes in the store. 


I think it's very confusing and the second sentence is likely wrong. We would need to clarify the difference between options passivation="true" or passivation="false". It would help to refer to table Table 10.1 or Table 10.2 as well.

Comment 1 Misha H. Ali 2012-08-06 00:57:46 UTC
Emailed Sanne for clarification about the first part of this comment.

To address ref to table 10.1/table 10.2 comment, adding links to tables outlining what occurs when passivation is on and off.

Comment 2 Sanne Grinovero 2012-08-06 09:29:42 UTC
To clarify my first comment, the culprit of my doubt is in the wording
"When passivation is enabled [..] after modification, addition or removal [..] the cacheloader steps in to persist the changes"

While reading - especially the first sentence:

https://docs.jboss.org/author/display/ISPN/CacheLoaders#CacheLoaders-cachepassivation

that seems to be the behaviour when a CacheLoader is DISABLED; when it is enabled the cacheloader should step in on an eviction event, not any other modification.

I'm not sure that a CacheLoader doesn't trigger *also* on a modification; asking someone on the Infinispan team to confirm this.

Comment 3 Mircea Markus 2012-08-06 11:20:47 UTC
@Sanne +1, the behaviour described in the sentence you quoted is incorrect. The sentence should state "When the passivation is *disabled* .. "

Comment 4 Misha H. Ali 2012-08-07 03:46:36 UTC
Apologies, Sanne, I was looking at the first sentence of the first paragraph from the content you posted in the original post, not the first sentence of the second paragraph. Thanks for the clarifications, both of you!

Comment 5 Misha H. Ali 2012-08-07 23:38:07 UTC
Change made, will move this bug to ON_QA once it appears on the stage for verification.


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