Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2502

When a child node cannot be found whithin a parent, ModeShape should retry the operation after clearing the workspace cache

    Details

    • Type: Task
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.8.x-prod-ip6.2, 4.4.0.Final
    • Fix Version/s: 3.8.x-prod-ip6.2, 4.5.0.Final
    • Component/s: None
    • Labels:
      None

      Description

      Because the WorkspaceCache acts as a secondary in memory-cache and is unconnected to the main Infinispan cache, it can happen that when running in a cluster, after Infinispan has finished committing a transaction and performing the state transfer, workspace caches from other nodes in the cluster contain stale data. This is because workspace caches on other cluster nodes are only cleared after JGroups has dispatched the remote ChangeSet.

      To minimize the risk of seeing this stale data when a child node tries unsuccessfully to locate the parent it belongs to, ModeShape should retry the operation after clearing the key of the parent from the WorkspaceCache. This would ensure that the process on which the operation is performed always sees the latest persisted information about the parent.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hchiorean Horia Chiorean
                Reporter:
                hchiorean Horia Chiorean
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: