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

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

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 18.0.1.Final
    • Clustering
    • None

      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); 
      }
      

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: