You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Kuan Po Tseng (Jira)" <ji...@apache.org> on 2024/12/07 17:05:00 UTC
[jira] [Commented] (KAFKA-18181) Refactor ShareConsumerTest
[ https://issues.apache.org/jira/browse/KAFKA-18181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17903831#comment-17903831 ]
Kuan Po Tseng commented on KAFKA-18181:
---------------------------------------
Hi [~chia7712] , may I take over this issue ? Thank you !
> Refactor ShareConsumerTest
> --------------------------
>
> Key: KAFKA-18181
> URL: https://issues.apache.org/jira/browse/KAFKA-18181
> Project: Kafka
> Issue Type: Improvement
> Reporter: Chia-Ping Tsai
> Assignee: Chia-Ping Tsai
> Priority: Major
>
> 1. `consumeMessages` should return `messagesConsumed` instead of wrapping it in `CompletableFuture`
> 2. replace `fail` by `assertDoesNotThrow` or just throw exception
> 3. `produceMessages`should return `messagesConsumed` instead of wrapping it in `CompletableFuture`
> 4. use `CompletableFuture.runAsync()` instead of ExecutorService. We don't use the interrupt so it is fine to use default executor
--
This message was sent by Atlassian Jira
(v8.20.10#820010)