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

Create topic before publishing prediction log #556

Merged
merged 1 commit into from
Mar 26, 2024
Merged

Conversation

khorshuheng
Copy link
Collaborator

Description

Currently, if the Kafka brokers do not support auto topic creation, PyfuncV3Model will fail to publish the prediction log due to missing topic. This PR add a step to ensure that the topic is present prior to publishing the message.

Modifications

Create topic during publisher initizliation.

Tests

Checklist

  • Added PR label
  • Added unit test, integration, and/or e2e tests
  • Tested locally
  • Updated documentation
  • Update Swagger spec if the PR introduce API changes
  • Regenerated Golang and Python client if the PR introduces API changes

Release Notes


@khorshuheng khorshuheng requested a review from mbruner March 22, 2024 06:52
@khorshuheng khorshuheng self-assigned this Mar 22, 2024
@khorshuheng khorshuheng added the bug Something isn't working label Mar 22, 2024
Copy link
Contributor

@ariefrahmansyah ariefrahmansyah left a comment

Choose a reason for hiding this comment

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

lgtm

i'd suppose we also need to update this PR: #554 ?

@khorshuheng
Copy link
Collaborator Author

lgtm

i'd suppose we also need to update this PR: #554 ?

Yes, i will update #554 as well.

@khorshuheng khorshuheng merged commit 2c9eefa into main Mar 26, 2024
34 checks passed
@khorshuheng khorshuheng deleted the auto-create-topic branch March 26, 2024 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants