[MGNLADVCACHE-63] Synchronize time stamp updates of NotifyFlushListeningPolicy in order to prevent InvalidItemStateExceptions Created: 05/Nov/15  Updated: 15/Jul/16  Resolved: 15/Jun/16

Status: Closed
Project: Advanced Cache
Component/s: None
Affects Version/s: None
Fix Version/s: 1.7.5

Type: Improvement Priority: Neutral
Reporter: Zdenek Skodik Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: support
Remaining Estimate: 0d
Time Spent: 0.5h
Original Estimate: Not Specified

Issue Links:
Relates
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Sprint: Kromeriz 48
Story Points: 5

 Description   

Upon high number of activation requests to multiple workspaces being run in parallel, each of those threads will try to update the time stamp concurrently which can result in:

WARN org.apache.jackrabbit.core.ItemSaveOperation : /modules/advanced-cache/config/notifyFlushListeningPolicy/lastUpdateTimeStamp: failed to restore transient state
ERROR ia.jcr.wrapper.MgnlPropertySettingContentDecorator: Failed to update LUD for session: session-admin-318::config
javax.jcr.InvalidItemStateException: property /modules/advanced-cache/config/notifyFlushListeningPolicy/lastUpdateTimeStamp: the property cannot be saved because it has been modified externally.

https://forum.magnolia-cms.com/forum/thread.html?threadId=5ab6859f-026d-4a83-89a3-d3a6e1275ee6&page=1#acf4862c-86df-4a88-8005-c994f6d30c7b



 Comments   
Comment by Roman Kovařík [ 15/Jun/16 ]

Hint for QA:

for(String workspace: info.magnolia.objectfactory.Components.getComponent(info.magnolia.repository.RepositoryManager).getWorkspaceNames()) {
  session = MgnlContext.getJCRSession(workspace)
  session.getRootNode().addNode("test");
  session.save()
}
Generated at Sun Feb 11 23:10:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.