-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Implement kafka_consumer check with Confluent library #14014
Implement kafka_consumer check with Confluent library #14014
Conversation
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
'apt-get install -y build-essential', | ||
], | ||
} | ||
'docker_volumes': ['{}/start_commands.sh:/tmp/start_commands.sh'.format(HERE)], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only temporary for now. Once #14022 is merged in we can remove this part.
|
||
class ConfluentKafkaClient: | ||
def __init__(self) -> None: | ||
pass | ||
def __init__(self, config, tls_context, log) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once #14022 is merged, we can remove this __init__()
since the parent class will have this.
} | ||
consumer = Consumer(config) | ||
|
||
# TODO: AdminClient also has a list_topics(), see if Consumer.list_topics() is the same |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AdminClient's list_topics()
does the same thing as Consumer's: https://docs.confluent.io/platform/current/clients/confluent-kafka-python/html/index.html#id12
Closing in favor of #14076 |
What does this PR do?
Motivation
Additional Notes
Review checklist (to be filled by reviewers)
changelog/
andintegration/
labels attachedqa/skip-qa
label.