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

Connect system tests should wait for workers to join group

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.6.0
    • 2.3.2, 2.6.0, 2.4.2, 2.5.1, 2.7.0
    • connect
    • None

    Description

      There are a few flakey test failures for connect_distributed_test in which one of the workers does not join the group quickly, and the test fails in the following manner:

      1. The test starts each of the connect workers, and waits for their REST APIs to become available
      2. All workers start up, complete plugin scanning, and start their REST API
      3. At least one worker kicks off an asynchronous job to join the group that hangs for a yet unknown reason (30s timeout)
      4. The test continues without all of the members joined
      5. The test makes a call to the REST api that it expects to succeed, and gets an error
      6. The test fails without the worker ever joining the group

      Instead of allowing the test to fail in this manner, we could wait for each worker to join the group with the existing 60s startup timeout. This change would go into effect for all system tests using the ConnectDistributedService, currently just connect_distributed_test and connect_rest_test

      Alternatively we could retry the operation that failed, or ensure that we use a known-good worker to continue the test, but these would require more involved code changes. The existing wait-for-startup logic is the most natural place to fix this issue.

      Attachments

        Issue Links

          Activity

            People

              gharris1727 Greg Harris
              gharris1727 Greg Harris
              Randall Hauch Randall Hauch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: