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

High CPU caused by timeout overflow in WorkerCoordinator

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.1.0, 0.10.2.0
    • Component/s: KafkaConnect
    • Labels:
      None

      Description

      The timeout passed to WorkerCoordinator.poll() can overflow if large enough because we add it to the current time in order to calculate the call's deadline. This shortcuts the poll loop and results in a very tight event loop which can saturate a CPU. We hit this case out of the box because Connect uses a default timeout of Long.MAX_VALUE.

        Attachments

          Activity

            People

            • Assignee:
              hachikuji Jason Gustafson
              Reporter:
              hachikuji Jason Gustafson
              Reviewer:
              Ewen Cheslack-Postava
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: