Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-12883

Add user API to handle merging @Stateful EJB instances on partition merge

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 18.0.1.Final
    • Fix Version/s: None
    • Component/s: Clustering
    • Labels:
      None

      Description

      In the event of a detected network partition, the distributed bean manager's Infinispan cache behaves in one of 3 ways:

      1. Disallow both reads and writes from/to a SFSB in all partitions
      2. Allow reads from a SFSB in all partitions, but only allow writes to a SFSB if the partition contains all data owners.
      3. Allow both reads and writes to/from a SFSB in all partitions

      For customers who opt for #3 (i.e. maximum availability), in the event that a SFSB is updated in both partitions, they need be able to provide a mechanism to resolve conflicts when the partitions eventually merge.

      Something like:

      public interface BeanInstanceMergePolicy<T> {
          T merge(T primaryPartitionBean, Iterable<T> minorityPartitionBeans); 
      }
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pferraro Paul Ferraro
                  Reporter:
                  pferraro Paul Ferraro
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated: