lucasbru commented on code in PR #20714:
URL: https://github.com/apache/kafka/pull/20714#discussion_r2440238757
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/OffsetMetadataManager.java:
##########
@@ -693,6 +699,17 @@ public CoordinatorResult<TxnOffsetCommitResponseData,
CoordinatorRecord> commitT
.setPartitionIndex(partition.partitionIndex())
.setErrorCode(Errors.OFFSET_METADATA_TOO_LARGE.code()));
} else {
+ // Validate per-partition commit
+ try {
+ validator.validate(
+ topic.name(),
+ org.apache.kafka.common.Uuid.ZERO_UUID,
+ partition.partitionIndex()
+ );
+ } catch (StaleMemberEpochException ex) {
+ throw Errors.ILLEGAL_GENERATION.exception();
+ }
Review Comment:
As discussed, keeping it this way for now
--
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]