You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "squah-confluent (via GitHub)" <gi...@apache.org> on 2025/04/01 06:31:29 UTC

[PR] KAFKA-19064: Handle exceptions from deferred events in coordinator [kafka]

squah-confluent opened a new pull request, #19333:
URL: https://github.com/apache/kafka/pull/19333

   Previously in KAFKA-18484, we added exception handling for exceptions
   coming from batch events. Also handle exceptions from 0-record write
   events and transaction completion events.
   


-- 
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] KAFKA-19064: Handle exceptions from deferred events in coordinator [kafka]

Posted by "dajac (via GitHub)" <gi...@apache.org>.
dajac commented on code in PR #19333:
URL: https://github.com/apache/kafka/pull/19333#discussion_r2023181017


##########
coordinator-common/src/test/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntimeTest.java:
##########
@@ -649,42 +649,37 @@ public void testScheduleUnloadingWithDeferredEventExceptions() throws ExecutionE
         runtime.scheduleLoadOperation(TP, 10);
         CoordinatorRuntime<MockCoordinatorShard, String>.CoordinatorContext ctx = runtime.contextOrThrow(TP);
 
-        // Get the max batch size.

Review Comment:
   I wonder why we changed the old test vs adding a new one for the new discovered cases. Is the old test not necessary any more?



-- 
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] KAFKA-19064: Handle exceptions from deferred events in coordinator [kafka]

Posted by "squah-confluent (via GitHub)" <gi...@apache.org>.
squah-confluent commented on code in PR #19333:
URL: https://github.com/apache/kafka/pull/19333#discussion_r2023370790


##########
coordinator-common/src/test/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntimeTest.java:
##########
@@ -649,42 +649,37 @@ public void testScheduleUnloadingWithDeferredEventExceptions() throws ExecutionE
         runtime.scheduleLoadOperation(TP, 10);
         CoordinatorRuntime<MockCoordinatorShard, String>.CoordinatorContext ctx = runtime.contextOrThrow(TP);
 
-        // Get the max batch size.

Review Comment:
   I put all three cases in the same test.
   
   Previously, write #2 existed to test the exception handling (it would not be completed if there was none) and write #3 triggered a flush. Write #2 is unnecessary in the unload case and the flush is now triggered by the transaction completion.



-- 
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] KAFKA-19064: Handle exceptions from deferred events in coordinator [kafka]

Posted by "squah-confluent (via GitHub)" <gi...@apache.org>.
squah-confluent commented on code in PR #19333:
URL: https://github.com/apache/kafka/pull/19333#discussion_r2023370790


##########
coordinator-common/src/test/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntimeTest.java:
##########
@@ -649,42 +649,37 @@ public void testScheduleUnloadingWithDeferredEventExceptions() throws ExecutionE
         runtime.scheduleLoadOperation(TP, 10);
         CoordinatorRuntime<MockCoordinatorShard, String>.CoordinatorContext ctx = runtime.contextOrThrow(TP);
 
-        // Get the max batch size.

Review Comment:
   I put all three cases in the same test.
   
   Previously, write#2 existed to test the exception handling (it would not be completed if there was none) and write#3 triggered a flush. Write#2 is unnecessary in the unload case and the flush is now triggered by the transaction completion.



-- 
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] KAFKA-19064: Handle exceptions from deferred events in coordinator [kafka]

Posted by "dajac (via GitHub)" <gi...@apache.org>.
dajac merged PR #19333:
URL: https://github.com/apache/kafka/pull/19333


-- 
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] KAFKA-19064: Handle exceptions from deferred events in coordinator [kafka]

Posted by "squah-confluent (via GitHub)" <gi...@apache.org>.
squah-confluent commented on PR #19333:
URL: https://github.com/apache/kafka/pull/19333#issuecomment-2768311647

   Depends upon https://github.com/apache/kafka/pull/19332 and won't compile without it.


-- 
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