KAFKA-9053: AssignmentInfo#encode hardcodes the LATEST_SUPPORTED_VERSION (#7537)
Also put in some additional logging that makes sense to add, and proved helpful in debugging this particular issue.
Unit tests verifying the encoded supported version were added.
This should get cherry-picked back to 2.1
Reviewers: Bill Bejeck <bill@confluent.io>, Guozhang Wang <wangguoz@gmail.com>
pull/7543/head
A. Sophie Blee-Goldman5 years agocommitted byGuozhang Wang
@ -383,10 +383,15 @@ public class StreamsPartitionAssignor implements ConsumerPartitionAssignor, Conf
@@ -383,10 +383,15 @@ public class StreamsPartitionAssignor implements ConsumerPartitionAssignor, Conf
log.info("Downgrade latest supported metadata to version {}. Latest supported version is {}.",
minSupportedMetadataVersion,
LATEST_SUPPORTED_VERSION);
}
log.debug("Constructed client metadata {} from the member subscriptions.",clientMetadataMap);
@ -1055,9 +1060,10 @@ public class StreamsPartitionAssignor implements ConsumerPartitionAssignor, Conf
@@ -1055,9 +1060,10 @@ public class StreamsPartitionAssignor implements ConsumerPartitionAssignor, Conf
log.info(
"Sent a version {} subscription and got version {} assignment back (successful version probing). "
+
"Downgrade subscription metadata to commonly supported version and trigger new rebalance.",
"Downgrade subscription metadata to commonly supported version {} and trigger new rebalance.",
@ -1237,7 +1243,15 @@ public class StreamsPartitionAssignor implements ConsumerPartitionAssignor, Conf
@@ -1237,7 +1243,15 @@ public class StreamsPartitionAssignor implements ConsumerPartitionAssignor, Conf