Skip to content

Commit

Permalink
Merge pull request #572 from Shopify/kafka09
Browse files Browse the repository at this point in the history
Add kafka 0.9
  • Loading branch information
eapache committed Nov 26, 2015
2 parents 8e56596 + 390dbcd commit c36adfa
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
matrix:
- KAFKA_VERSION=0.8.1.1
- KAFKA_VERSION=0.8.2.2
- KAFKA_VERSION=0.9.0.0

before_install:
- export REPOSITORY_ROOT=${TRAVIS_BUILD_DIR}
Expand Down
5 changes: 5 additions & 0 deletions functional_offset_manager_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
package sarama

import (
"os"
"testing"
)

func TestFuncOffsetManager(t *testing.T) {
checkKafkaVersion(t, "0.8.2")
if os.Getenv("KAFKA_VERSION") == "0.9.0.0" {
t.Skip("Offset manager is broken with kafka 0.9 at the moment.")
}

setupFunctionalTest(t)
defer teardownFunctionalTest(t)

Expand Down
2 changes: 2 additions & 0 deletions functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ func (kv kafkaVersion) satisfies(other kafkaVersion) bool {

if v < ov {
return false
} else if v > ov {
return true
}
}
return true
Expand Down
2 changes: 1 addition & 1 deletion vagrant/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ yes | apt-get install default-jre

export KAFKA_INSTALL_ROOT=/opt
export KAFKA_HOSTNAME=192.168.100.67
export KAFKA_VERSION=0.8.2.2
export KAFKA_VERSION=0.9.0.0
export REPOSITORY_ROOT=/vagrant

sh /vagrant/vagrant/install_cluster.sh
Expand Down
1 change: 1 addition & 0 deletions vagrant/server.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

# The id of the broker. This must be set to a unique integer for each broker.
broker.id=KAFKAID
reserved.broker.max.id=10000

############################# Socket Server Settings #############################

Expand Down

0 comments on commit c36adfa

Please sign in to comment.