You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Albert Lowis (Jira)" <ji...@apache.org> on 2020/09/08 12:05:00 UTC

[jira] [Commented] (KAFKA-9679) Mock consumer should behave consistent with actual consumer

    [ https://issues.apache.org/jira/browse/KAFKA-9679?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17192172#comment-17192172 ] 

Albert Lowis commented on KAFKA-9679:
-------------------------------------

Hello [~sujayopensource] and [~bchen225242] , I'm a newbie looking to contribute, it seems that it has been some time since there is activity in this issue, do you mind if I take this up?

Thank you!

> Mock consumer should behave consistent with actual consumer
> -----------------------------------------------------------
>
>                 Key: KAFKA-9679
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9679
>             Project: Kafka
>          Issue Type: Test
>          Components: consumer, streams
>            Reporter: Boyang Chen
>            Assignee: Sujay Hegde
>            Priority: Major
>              Labels: help-wanted, newbie, newbie++
>
> Right now in MockConsumer we shall return illegal state exception when the buffered records are not able to find corresponding assigned partitions. This is not the case for KafkaConsumer where we shall just not return those data during `poll()` call. This inconsistent behavior should be fixed.
> Note that if we are going to take this fix, the full unit tests need to be executed to make sure no regression is introduced, as some tests are potentially depending on the current MockConsumer behavior.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)