[
http://jira.jboss.com/jira/browse/JBCACHE-793?page=comments#action_12344667 ]
Brian Stansberry commented on JBCACHE-793:
------------------------------------------
I'm not sure I understand the question, but that's never stopped me trying to
answer ;)
If JBC is managing the versions, the invalidation message carries no version; on the
recipient the node is just removed (or just its data if it has chidren).
If the caller is managing the versions, the invalidation message carries the
originator's version. This is compared to the version on the message recipient; if
the recipient version is older or the same the node is removed (or just its data if it has
children). If the recipient version is newer a CacheException is thrown, which only
propagates back to the caller if INVALIDATE_SYNC is used.
When the recipient removes the node/node-data, the version stored in the node is lost. If
there was a version in the invalidation message, that of course is lost too when the
method returns. So, I guess in that sense the recipient "forgets" the
invalidation's version number.
hibernate-recommended-config.xml incorrectly specifies
INVALIDATION_SYNC
------------------------------------------------------------------------
Key: JBCACHE-793
URL:
http://jira.jboss.com/jira/browse/JBCACHE-793
Project: JBoss Cache
Issue Type: Task
Security Level: Public(Everyone can see)
Affects Versions: 1.4.0.SP1, 1.4.0
Reporter: Brian Stansberry
Assigned To: Manik Surtani
Fix For: 1.4.0.SP2, 2.0.0
Steve Ebersole has indicated that use of invalidation is inappropriate for the Hibernate
2nd level cache use case, so we shouldn't recommend it.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira