[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: |
|
||||
| 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. |
| 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() } |