Class ConflictResolver

java.lang.Object
io.debezium.connector.spanner.task.ConflictResolver

public class ConflictResolver extends Object
When merge of partitions happens, it is possible that several tasks will process the same child partition. This class introduces the algorithm to understand, who should be the owner of the partition.
  • Constructor Details

    • ConflictResolver

      private ConflictResolver()
  • Method Details

    • hasPriority

      public static boolean hasPriority(String testedTaskUid, Set<String> taskUids)
    • getPriorityPartition

      public static String getPriorityPartition(Set<String> tokens)
    • getPriorityString

      private static String getPriorityString(Set<String> strings)