Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dataflow): wait for kafka topic creation #5375

Merged
merged 2 commits into from Feb 26, 2024

Conversation

lc525
Copy link
Member

@lc525 lc525 commented Feb 26, 2024

This is identical to the reviewed (and approved) lc525#47 but rebased against current seldonio/v2 for merging

What this PR does / why we need it:
Kafka topic creation happens asynchronously. This means that even when the return value from createTopics(...) indicates that the topic has been created successfuly, the topic can not be immediately subscribed to.

Instead of verifying the status of the topic from the createTopics return value, here we're repeatedly calling describeTopics until all of the topics for the pipeline can be described successfully. This indicates that the topic has been fully created at least on one broker, and can now be subscribed to.

Which issue(s) this PR fixes:
Fixes dataflow component for #INFRA-663 (internal): Pipeline creation goes into ERROR state

Kafka topic creation happens asynchronously. This means that even when
the return value from `createTopics(...)` indicates that the topic has
been created successfuly, the topic can not be immediately subscribed
to.

Instead of verifying the status of the topic from the `createTopics`
return value, here we're repeatedly calling `describeTopics` until
all of the topics for the pipeline can be described successfully.
This indicates that the topic has been fully created _at least_ on
one broker, and can now be subscribed to.
@lc525 lc525 requested a review from sakoush as a code owner February 26, 2024 19:37
Copy link
Member

@sakoush sakoush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

topicCreateTimeoutMillis,
topicDescribeTimeoutMillis,
topicDescribeRetries,
topicDescribeRetryDelayMillis,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@lc525 lc525 merged commit 3041d0c into SeldonIO:v2 Feb 26, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants