rajinisivaram commented on code in PR #12954:
URL: https://github.com/apache/kafka/pull/12954#discussion_r1040685932
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractPartitionAssignor.java:
##########
@@ -47,23 +51,37 @@ public abstract class AbstractPartitionAssignor implements
ConsumerPartitionAssi
public abstract Map<String, List<TopicPartition>> assign(Map<String,
Integer> partitionsPerTopic,
Map<String,
Subscription> subscriptions);
+ /**
+ * Default implementation of assignPartitions() that does not include
racks. This is only
+ * included to avoid breaking any custom implementation that extends
AbstractPartitionAssignor.
+ * Note that this class is internal, but to be safe, we are maintaining
compatibility.
+ */
+ public Map<String, List<TopicPartition>> assignPartitions(Map<String,
List<PartitionInfo>> partitionsPerTopic,
Review Comment:
Removed.
##########
clients/src/test/java/org/apache/kafka/clients/consumer/internals/ConsumerProtocolTest.java:
##########
@@ -56,7 +56,7 @@ public void serializeDeserializeSubscriptionAllVersions() {
new TopicPartition("foo", 0),
new TopicPartition("bar", 0));
Subscription subscription = new Subscription(Arrays.asList("foo",
"bar"),
- ByteBuffer.wrap("hello".getBytes()), ownedPartitions,
generationId);
+ ByteBuffer.wrap("hello".getBytes()), ownedPartitions,
generationId, Optional.empty());
Review Comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]