You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "mjsax (via GitHub)" <gi...@apache.org> on 2025/01/10 22:42:30 UTC
[PR] MINOR: simplify producer code [kafka]
mjsax opened a new pull request, #18486:
URL: https://github.com/apache/kafka/pull/18486
Call for review @jolshan @hachikuji
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] MINOR: simplify producer code [kafka]
Posted by "jolshan (via GitHub)" <gi...@apache.org>.
jolshan commented on code in PR #18486:
URL: https://github.com/apache/kafka/pull/18486#discussion_r1911633047
##########
clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java:
##########
@@ -462,17 +462,10 @@ private boolean maybeSendAndPollTransactionalRequest() {
return true;
}
- if (transactionManager.hasAbortableError() || transactionManager.isAborting()) {
- if (accumulator.hasIncomplete()) {
Review Comment:
Do we still want to include the accumulator.hasIncomplete check around the two other statements? I suppose they will just be a no-op if there aren't incomplete batches.
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] MINOR: simplify producer code [kafka]
Posted by "mjsax (via GitHub)" <gi...@apache.org>.
mjsax commented on code in PR #18486:
URL: https://github.com/apache/kafka/pull/18486#discussion_r1911759131
##########
clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java:
##########
@@ -462,17 +462,10 @@ private boolean maybeSendAndPollTransactionalRequest() {
return true;
}
- if (transactionManager.hasAbortableError() || transactionManager.isAborting()) {
- if (accumulator.hasIncomplete()) {
Review Comment:
Right. It's a no-op so check is not necessary.
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] MINOR: simplify producer code [kafka]
Posted by "jolshan (via GitHub)" <gi...@apache.org>.
jolshan commented on code in PR #18486:
URL: https://github.com/apache/kafka/pull/18486#discussion_r1911633047
##########
clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java:
##########
@@ -462,17 +462,10 @@ private boolean maybeSendAndPollTransactionalRequest() {
return true;
}
- if (transactionManager.hasAbortableError() || transactionManager.isAborting()) {
- if (accumulator.hasIncomplete()) {
Review Comment:
Do we still want to include the accumulator.hasIncomplete check around the two other statements?
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] MINOR: simplify producer code [kafka]
Posted by "jolshan (via GitHub)" <gi...@apache.org>.
jolshan commented on PR #18486:
URL: https://github.com/apache/kafka/pull/18486#issuecomment-2584705999
@mjsax can you make the title a bit more descriptive -- ie "simplifying producer abort error handling"
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] MINOR: simplify producer code [kafka]
Posted by "jolshan (via GitHub)" <gi...@apache.org>.
jolshan commented on PR #18486:
URL: https://github.com/apache/kafka/pull/18486#issuecomment-2584693166
Long time no see @hachikuji 😉
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] MINOR: simplify producer TX abort error handling [kafka]
Posted by "mjsax (via GitHub)" <gi...@apache.org>.
mjsax merged PR #18486:
URL: https://github.com/apache/kafka/pull/18486
--
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: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org