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

Protocol v1 support #134

Merged
merged 5 commits into from
Jun 30, 2023
Merged

Protocol v1 support #134

merged 5 commits into from
Jun 30, 2023

Conversation

mvaught02
Copy link
Contributor

@mvaught02 mvaught02 commented Jun 7, 2023

few things for this PR

this will close #38
this will address parts of #133

added a client flag to enable broker aware request so that we will attempt to fetch and use the latest supported versions
(you have to use ProduceRequest v2 or higher to actually enable support for using message v1)

the integration tests now log to a file under the top level dir logs only the client logs to stdout for itests... the itests also now use pytest and if there is a failure the logs will be included in the test output

integration tests now also run against broker version 2.8.2 as well as still running against 1.1.1 and 0.9.0.1

3.9.4 will be added in the next PR that will include record/recordBatch handling

there are several places where magic was added to the encoder to handle different ways the message might be built before passing it to the producer to to send but for anyone using the normal producer.send_messages this should be handled automatically... if you use the low level producer.send_produce_request then you will need to update your code to pass in the magic to the messages you construct to pass to the ProduceRequest this would only be for the case where you want to use the non-defaulted value (always 0)

@mvaught02 mvaught02 marked this pull request as ready for review June 29, 2023 16:31
@mvaught02 mvaught02 requested review from ryban and kilahsu June 29, 2023 16:31
@mvaught02 mvaught02 added this to the bring afkak current milestone Jun 29, 2023
fix error with produce/response encode and decode handling for new version

use pytest for tests
update kafka and zk logs to go to file for tests

test updates
afkak/client.py Show resolved Hide resolved
afkak/client.py Outdated Show resolved Hide resolved
afkak/producer.py Outdated Show resolved Hide resolved
afkak/test/conftest.py Show resolved Hide resolved
@mvaught02 mvaught02 requested a review from ryban June 30, 2023 16:02
Copy link

@ryban ryban left a comment

Choose a reason for hiding this comment

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

LGTM

@mvaught02 mvaught02 merged commit 4853c52 into ciena:master Jun 30, 2023
10 checks passed
@mvaught02 mvaught02 deleted the protocol_v1_support branch June 30, 2023 19:51
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.

Afkak does not set creation timestamps in kafka messages
2 participants