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

Possible worker_id duplication in Connect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.10.2.1
    • None
    • connect
    • None

    Description

      It's possible to set non-unique host/port combinations for workers via rest.advertised.host.name and rest.advertised.host.port (e.g. localhost:8083). While this isn't typically advisable, it can result in weird behavior for containerized deployments where localhost might end up being mapped to something that is externally facing. The worker_id today appears to be set as this host/port combination so you end up with duplicate worker_ids causing long rebalances presumably because task assignment gets confused. It would be good to either change how the worker_id is generated or find a way to not let a worker start if a worker with an identical worker_id already exists. In the short term, we should document the requirement of unique advertised host/port combinations for workers to avoid debugging a somewhat tricky scenario.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cotedm Dustin Cote
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: