aliehsaeedii opened a new pull request, #16332:
URL: https://github.com/apache/kafka/pull/16332
This PR aims at returning the transaction from error state to enable the
user to commit the transaction even if the latest `send(ProducerRecord)` failed
with an error. This change will fix the bu
mjsax commented on code in PR #16332:
URL: https://github.com/apache/kafka/pull/16332#discussion_r1638861356
##
clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java:
##
@@ -792,6 +792,9 @@ public void sendOffsetsToTransaction(Map offs
*
* Furth
aliehsaeedii commented on code in PR #16332:
URL: https://github.com/apache/kafka/pull/16332#discussion_r1639280799
##
clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java:
##
@@ -792,6 +792,9 @@ public void sendOffsetsToTransaction(Map offs
*
aliehsaeedii commented on code in PR #16332:
URL: https://github.com/apache/kafka/pull/16332#discussion_r1639578562
##
clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java:
##
@@ -1220,6 +1223,7 @@ private void ensureValidRecordSize(int size) {
* of f
aliehsaeedii commented on PR #16332:
URL: https://github.com/apache/kafka/pull/16332#issuecomment-2167688944
@C0urante It would be nice if you took a look.
Instead of implementing a custom handler for Producer (as suggested in
KIP-1038), we came up with the idea of allowing the user to st
aliehsaeedii commented on code in PR #16332:
URL: https://github.com/apache/kafka/pull/16332#discussion_r1639578562
##
clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java:
##
@@ -1220,6 +1223,7 @@ private void ensureValidRecordSize(int size) {
* of f
artemlivshits commented on code in PR #16332:
URL: https://github.com/apache/kafka/pull/16332#discussion_r1640809221
##
clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java:
##
@@ -1257,6 +1261,9 @@ public void flush() {
this.sender.wakeup();
C0urante commented on PR #16332:
URL: https://github.com/apache/kafka/pull/16332#issuecomment-2173591962
@aliehsaeedii I like this approach a lot more than the pluggable error
handler interface! But it seems like there's risk to this change. Allowing
transactions to commit where they would
mjsax commented on code in PR #16332:
URL: https://github.com/apache/kafka/pull/16332#discussion_r1643028085
##
clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java:
##
@@ -1257,6 +1261,9 @@ public void flush() {
this.sender.wakeup();
try
aliehsaeedii commented on PR #16332:
URL: https://github.com/apache/kafka/pull/16332#issuecomment-2173820465
> @aliehsaeedii I like this approach a lot more than the pluggable error
handler interface! But it seems like there's risk to this change. Allowing
transactions to commit where they
artemlivshits commented on code in PR #16332:
URL: https://github.com/apache/kafka/pull/16332#discussion_r1645285270
##
clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java:
##
@@ -1257,6 +1261,9 @@ public void flush() {
this.sender.wakeup();
11 matches
Mail list logo