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

Trogdor ConsumeBenchWorker quits prematurely with maxMessages config

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • None
    • None

    Description

      The trogdor ConsumeBenchWorker has a bug. If one of the consumption tasks completes executing successfully due to maxMessages being consumed, then, the consumption task notifies the doneFuture causing the ConsumeBenchWorker to halt. This becomes a problem when more than 1 consumption task is running in parallel, because the successful completion of 1 of the tasks shuts down the entire worker while the other tasks are still running. When the worker is shut down, it kills all the active consumption tasks, which is not the desired behavior.

      The fix is to not notify the doneFuture when 1 of the consumption tasks complete without error. Instead, we should defer the notification to the CloseStatusUpdater thread.

      Attachments

        Issue Links

          Activity

            People

              kprakasam Kowshik Prakasam
              kprakasam Kowshik Prakasam
              Rajini Sivaram Rajini Sivaram
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: