Skip to content

Job topicctl-provisioning hangs after completion #259

@patsevanton

Description

@patsevanton

Describe the bug

The kafka-provisioning Job hangs indefinitely after successfully applying topic changes.
The logs show that the apply process completes, but then the container enters an infinite loop waiting for user input that never comes in a non-interactive Kubernetes environment.

Logs:

sentry-kafka-provisioning-x94lb topicctl-provisioning time="2026-05-07 03:39:46" level=info msg="Checking leaders..."
sentry-kafka-provisioning-x94lb topicctl-provisioning time="2026-05-07 03:39:46" level=info msg="Apply completed successfully!"
sentry-kafka-provisioning-x94lb topicctl-provisioning OK to continue? (yes/no) OK to continue? (yes/no) ...

Root cause

The segmentio/topicctl binary (specifically v2.0.2) contains interactive prompts (e.g., OK to continue?) that wait for user input on stdin. Even with the --skip-confirm flag, some internal validation checks (like leader validation) still pause and wait for input. Since the Kubernetes Job runs non-interactively, the process blocks forever.

Current command in job-kafka-provisioning.yaml:

command:
  - /bin/topicctl
  - apply
  - --skip-confirm
  - --expand-env
  - --cluster-config=/configs/cluster.yaml
  - /configs/topics.yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions