dajac opened a new pull request, #24288:
URL: https://github.com/apache/kafka/pull/24288

   When the operation of a task throws, `MockCoordinatorExecutor` calls
   the operation a second time with that exception. An operation that
   handles the exception, as the regular expression resolution in
   `GroupMetadataManager` does, then returns a result, and the test never
   sees the first exception. `CoordinatorExecutorImpl` calls the operation
   only once. An exception thrown by the operation fails the write event,
   and the executor logs the failure as an error.
   
   The mock calls the operation inside the `try` block that runs the task.
   This patch catches only the exception thrown by the task, so an
   exception thrown by the operation is thrown by `poll()`. New tests
   cover a failing task and a failing operation.
   
   


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

Reply via email to