Class TaskConflictResolver

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

public class TaskConflictResolver 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

    • TaskConflictResolver

      private TaskConflictResolver()
  • Method Details

    • hasPriority

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

      public static String getPriorityTask(Set<String> taskUids)