Details
-
Task
-
Status: Open
-
Blocker
-
Resolution: Unresolved
-
None
-
None
Description
We're currently stuck on Mockito 4.x.y because the 5.x.y line requires Java 11 and, until we begin to work on Kafka 4.0.0, we continue to support Java 8.
Either directly before, or after releasing Kafka 4.0.0, we should try to upgrade to a version of Mockito on the 5.x.y line.
If we're able to use a version that includes https://github.com/mockito/mockito/pull/3078 (which should be included in either a 5.4.1 or 5.5.0 release), we should also revert the change made for https://issues.apache.org/jira/browse/KAFKA-14682, which is just a temporary workaround. Care should be taken that, after reverting that change, unused stubbings are still correctly reported during our CI builds.
If the effort required to upgrade our Mockito version is too high, we can either downgrade the severity of this ticket, or split it out into separate subtasks for each to-be-upgraded module.