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

Updated kafka returner to use confluent-kafka. #50579

Merged
merged 3 commits into from
Nov 23, 2018
Merged

Updated kafka returner to use confluent-kafka. #50579

merged 3 commits into from
Nov 23, 2018

Conversation

justindesilets
Copy link

The confluent-kafka-python package is a wrapper for the librdkafka C
library. In benchmarks it delivers higher I/O and has the option for
commercial support should you require it. I worked with the previous author @cedwards on this update.

https://github.com/confluentinc/confluent-kafka-python

What does this PR do?

Changes from the kafka-python library to the confluent-kafka-python library

Previous Behavior

Used the kafka-python library

New Behavior

Uses the confluent_kafka python library to return data in the same format as the previous returner.

Tests written?

No

Commits signed with GPG?

No

The confluent-kafka-python package is a wrapper for the librdkafka C
library. In benchmarks it delivers higher I/O and has the option for
commercial support should you require it.

https://github.com/confluentinc/confluent-kafka-python
""" Called once for each message produced to indicate delivery result.
Triggered by poll() or flush(). """
if err is not None:
print('Message delivery failed: {}'.format(err))
Copy link
Contributor

Choose a reason for hiding this comment

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

We should not be printing right to standard out like this.

@cachedout
Copy link
Contributor

There are a number of lint errors here. Could you please fix them up? https://jenkinsci.saltstack.com/job/pr-lint/job/PR-50579/1/warnings52Result/new/file.202663858/

Justin Desilets and others added 2 commits November 20, 2018 14:40
@cachedout cachedout merged commit fe2b052 into saltstack:develop Nov 23, 2018
@justindesilets justindesilets deleted the kafka_return_confluent_update branch March 26, 2019 14:40
@salty-blue-mango salty-blue-mango mentioned this pull request Nov 21, 2019
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.

2 participants