Skip to content

Runtime Integration Tests: test_connector_status fails with 'Failed to flush all Kafka messages' after topic partition count drops to 0 #7550

Open

Description

@mythical-fred-oss

Verdict: infrastructure flake, unrelated to any PR's code. Kafka producer failed to flush messages to a freshly-created topic within the test's 30s timeout.

Failing test/job:

Evidence (log lines from the job, timestamps ~16:47:24):

RuntimeError: Failed to flush all Kafka messages, remaining=500
tests/runtime/test_connector_status.py:24: RuntimeError

and in the teardown stderr:

%4|...|TERMINATE|rdkafka#producer-2| [thrd:app]: Producer terminating with 500 messages (5390 bytes) still in queue or transit: use flush() to wait for outstanding message delivery
%5|...|PARTCNT|rdkafka#producer-2| [thrd:main]: Topic connector-errors-input-34db6dc9dba4 partition count changed from 1 to 0

The partition count dropping to 0 right after the topic was created suggests the Kafka broker/metadata briefly lost or never properly propagated the topic's partitions, so none of the 500 produced records could be delivered inside the 30s flush() timeout.

What to look at next:

Not a PR bug — requeueing #7525 (or any other PR hitting this) should pass as long as the Kafka container cooperates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

connectorsIssues related to the adapters/connectors cratefred-observeTest failure diagnosed by the fred-observe bot

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions