Skip to content

Commit

Permalink
KAFKA-15045: (KIP-924 pt. 11) Implemented StickyTaskAssignor (apache#…
Browse files Browse the repository at this point in the history
…16052)

This PR implements the StickyTaskAssignor with the new KIP 924 API.

Reviewers: Anna Sophie Blee-Goldman <ableegoldman@apache.org>
  • Loading branch information
apourchet authored May 29, 2024
1 parent 59ba555 commit 56ee139
Show file tree
Hide file tree
Showing 2 changed files with 472 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.apache.kafka.streams.processor.assignment;

import java.util.Collection;
import java.util.Map;
import org.apache.kafka.clients.consumer.ConsumerPartitionAssignor.GroupAssignment;
import org.apache.kafka.clients.consumer.ConsumerPartitionAssignor.GroupSubscription;
import org.apache.kafka.common.Configurable;
Expand Down Expand Up @@ -73,6 +74,9 @@ enum AssignmentError {
*/
default void onAssignmentComputed(GroupAssignment assignment, GroupSubscription subscription, AssignmentError error) {}

@Override
default void configure(final Map<String, ?> configs) {}

/**
* Wrapper class for the final assignment of active and standbys tasks to individual
* KafkaStreams clients.
Expand Down
Loading

0 comments on commit 56ee139

Please sign in to comment.