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

KRaft ClusterInstance does not allow for deferred start

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • unit tests
    • None

    Description

      In our JUnit testkit extension, we allow for a cluster to be started explicitly in the test by annotating a test with AutoStart.NO. This allows for additional configuration or setup to be done in the test method before starting the cluster. For example:

      @ClusterTest(clusterType = Type.ZK, brokers = 3, autoStart = AutoStart.NO)
      public void testSomething(ClusterInstance clusterInstance) {
          clusterInstance.config().serverProperties().put("foo", "bar")
          clusterInstance.start();
          // ...
      }
      

      This works fine for ZK clusters, but is broken for KRaft clusters.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mumrah David Arthur
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: