Repository navigation
Retry topic creation in the live Kafka e2e when librdkafka retires a connection - #146
Merged
Merged
Conversation
16 tasks done
…connection
createSubscribedTopics() now retries createTopics up to five times when
every per-topic error is ERR__DESTROY_BROKER ("Broker handle destroyed
without termination"). Once librdkafka learns the broker list from the
cluster it retires the connection it bootstrapped through and fails the
requests still queued on it. It retries its own metadata requests on that
error but not admin requests, so a CreateTopics sent right after connect
can lose the race. It failed main's live-broker job once, on 2026-10-22,
and passed on a rerun. Creating a topic that already exists succeeds, so
retrying is safe.
rodrigobnogueira
force-pushed
the
fix/kafka-e2e-retired-broker
branch
from
October 26, 2026 02:15
7163825 to
8771d8a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
createSubscribedTopics()intest/integration/reliable-messaging.kafka.spec.tsretriescreateTopicsup to five times, with a short backoff, when every per-topic error isERR__DESTROY_BROKER("Broker handle destroyed without termination"). Any other error still fails the spec at once.rdkafka_metadata.c), but admin requests surface it, so a CreateTopics sent right after connect can lose the race.CHANGELOG.mdentry under Unreleased.Modules Touched
organizations/users/membershipsprojects/tasksactivity(feed read-model, projections)audit-logoutbox/inbox(the official outbox: store, handlers, consumers, worker)reminders(deferred + scheduled jobs)events-catalog(asyncapi) /assistant(ai-sdk)cache(read caching, tag invalidation)auth/context/ lockouttrpc(routers, generated schema)database(schema, migrations, wiring)Public Surface (libraries)
package.jsondescription,docs/, repo About —npm run docs:check)Security Review
Dependency Review
Migrations
Validation
git diff --checknpm run typechecknpm run lintnpm run complexity:checknpm run test:covnpm run security:auditnpm run buildnpm run smokeValidation Notes
Release Notes
CHANGELOG.mdupdated