Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6589

Extract Heartbeat thread from Abstract Coordinator for testability purposes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • consumer
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              smurakozi Sandor Murakozi
              guozhang Guozhang Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: