dongnuo123 opened a new pull request, #24374: URL: https://github.com/apache/kafka/pull/24374
Cherry-picking PR of https://github.com/apache/kafka/pull/24327 Conflicts - TxnOffsetCommitResponse.json keeps its 4.0 content. The supported errors comment exists only on trunk. - GroupCoordinatorService.java had two conflicts. - commitTransactionalOffsets keeps the 4.0 argument context.apiVersion() and calls handleOffsetCommitException. - handleOffsetCommitException is added above requireNonNull, which keeps its 4.0 signature. - OffsetCommitRequestTest.scala keeps the 4.0 import of fail and gains ServerConfigs. - TxnOffsetCommitRequestTest.scala keeps the 4.0 imports and gains ServerConfigs. Adaptations - OffsetCommitRequestTest.scala - The new test calls commitOffset with the 4.0 parameter list, which identifies the topic by name. - The new test sets the offsets topic partitions and replication factor to 1 in its own serverProperties, as every other test in that class does on 4.0. - TxnOffsetCommitRequestTest.scala calls verifyTxnCommitAndFetch with the 4.0 parameter list, which identifies the topic by name. - GroupCoordinatorServiceTest.java - The new testCommitOffsetsWithWrappedError builds the service with the GroupCoordinatorService constructor and startup. - It uses the literal "topic" as the topic name. - It mocks scheduleWriteOperation with the Duration timeout. -- 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]
