sjhajharia commented on code in PR #22334:
URL: https://github.com/apache/kafka/pull/22334#discussion_r3333090674
##########
transaction-coordinator/src/main/java/org/apache/kafka/coordinator/transaction/TransactionalIdAndProducerIdEpoch.java:
##########
@@ -14,16 +14,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.kafka.network;
+package org.apache.kafka.coordinator.transaction;
-import org.apache.kafka.server.common.RequestLocal;
-
-import java.util.function.Consumer;
-
-public record CallbackRequest(Consumer<RequestLocal> fun, Request
originalRequest) implements BaseRequest {
+public record TransactionalIdAndProducerIdEpoch(String transactionalId, long
producerId, short producerEpoch) {
@Override
public String toString() {
- return "CallbackRequest(" + fun + ", " + originalRequest + ")";
+ return "(transactionalId=" + transactionalId +
+ ", producerId=" + producerId +
+ ", producerEpoch=" + producerEpoch + ")";
}
-}
+}
Review Comment:
Thanks @mimaison for the review. I have updated the PR accordingly.
--
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]