Dear Kafka, Java 23 enhances the CancellationException for CompletableFuture [0], allowing it to show both 1) where cancel() was called and 2) where the exception is thrown.
However, if I recall correctly, the exception structure is considered part of the public APIs, so we need to maintain compatibility, even though developers could benefit from this 'breaking' change. Therefore, I added comments to PR#17409 [1] to remove the extra wrap (information) so as to maintain compatibility. The purpose of this email is to find developers who appreciate the improvements in CompletableFuture, so we can have further discussions after merging PR#17409 to introduce Java 23 to the CI. [0] https://bugs.openjdk.org/browse/JDK-8331987 [1] https://github.com/apache/kafka/pull/17409 Best, Chia-Ping