mingyen066 opened a new pull request, #19812: URL: https://github.com/apache/kafka/pull/19812
While rewriting `EndToEndClusterIdTest` in Java (#19741 ), I found that the test uses `MockInterceptor` and `MockSerializer `together. However, `MockSerializer` was using a `byte[]` serializer, while `MockInterceptor` expected a `String` serializer, leading to a `ClassCastException`. I chose to update `MockSerializer` to use String, as it is used less frequently than the interceptor. Using String also simplifies the code by avoiding the need to write expressions like "value".getBytes. -- 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-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org