You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Sandor Murakozi (JIRA)" <ji...@apache.org> on 2018/02/25 13:22:00 UTC

[jira] [Assigned] (KAFKA-6589) Extract Heartbeat thread from Abstract Coordinator for testability purposes

     [ https://issues.apache.org/jira/browse/KAFKA-6589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandor Murakozi reassigned KAFKA-6589:
--------------------------------------

    Assignee: Sandor Murakozi

> Extract Heartbeat thread from Abstract Coordinator for testability purposes
> ---------------------------------------------------------------------------
>
>                 Key: KAFKA-6589
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6589
>             Project: Kafka
>          Issue Type: Improvement
>          Components: consumer
>            Reporter: Guozhang Wang
>            Assignee: Sandor Murakozi
>            Priority: Minor
>
> Today we do not have an easy way to instrument the heartbeat thread in our unit test, e.g. to inject a GC or make it crash etc since it is a private class inside AbstractCoordinator.
> It is better to extract this class out and also enabling AbstractCoordinator to take a heartbeat-thread interface that can be mocked for test utils.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)