public int timesRevoked(TopicPartition partition) {
        return partitions.computeIfAbsent(partition, PartitionHistory::new).timesRevoked();
    }
Returns the number of times the partition has been revoked from this (sink) task.
@param partition the partition
@return the number of times it has been revoked; may be 0 if never revoked
connect/runtime/src/test/java/org/apache/kafka/connect/integration/TaskHandle.java