You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Guozhang Wang (JIRA)" <ji...@apache.org> on 2018/02/24 01:15:00 UTC

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

Guozhang Wang created KAFKA-6589:
------------------------------------

             Summary: 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


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)