Skip to content

Conversation

@stevevls
Copy link
Contributor

Added a utility method to check broker version so that tests for
newer functionality can be skipped.

Added a utility method to check broker version so that tests for
newer functionality can be skipped.
kafka-010:
working_directory: /go/src/github.com/segmentio/kafka-go
environment:
KAFKA_VERSION: "0.10.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

should be 0.10.1.0 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need to go all the way out to the 4th number? I thought protocol changes couldn't happen at that release level.

Copy link
Contributor

Choose a reason for hiding this comment

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

You're correct ! :)

@stevevls stevevls merged commit 969ec73 into master Jan 29, 2019
@stevevls stevevls deleted the test_kafka_0.10.0 branch January 29, 2019 19:12
@stevevls stevevls mentioned this pull request Feb 8, 2019
achille-roussel pushed a commit that referenced this pull request Feb 11, 2019
* Fix lookup partition (#1)

* Test against multiple Kafka versions

* Message writer for record batches (#163)

* Add branching for record batch writer

* Make key and value from headers public

* Add writeVarInt function

* Implement writeRecord method

* Write record batch method

* Use zigzag encoding for varint

* Drop logging

* Add unit test for v2 record batch

* Remove commented out code

* Use int constants from math package

* Use exact record size instead of extra buffer

* Give a simpler name to calcVarIntLen

* Move error check out of if else block

* Extract message set size in a function

* Give calcRecordSize a shorter name

* Protect recordSize from confusing order of params

* Use recordSize intead of estimatedRecordSize

* Extract record batch size

* Use record size from calculation

* Assign offsets to messages in record batch

* Write message set straight to output writer

* Write record batch straight to output writer

* Get rid of remainder buffer

* Remove commented out code

* Use bytes.Equal for comparing slices of bytes

* Compress messages before calculating size

* Run tests for kafka 0.10 (#187)

Added a utility method to check broker version so that tests for
newer functionality can be skipped.

* fix

* Fix memory leak in LookupPartition

* Fix ReadPartitions
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.

4 participants