Skip to content

Commit fd48b8c

Browse files
authored
Merge pull request #54 from Yelp/fix_merging_issues_with_142
Fix upgrade issues with 1.4.2.post2 version
2 parents a69b433 + 2900099 commit fd48b8c

17 files changed

+291
-115
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/__pycache__
2+
**/*.pyc

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y python2.7-dev \
1616
g++ \
1717
ca-certificates \
1818
python-pip \
19-
python-tox
19+
python-tox
2020

2121
# python-lz4 requires minium pypy version 5.8.0
2222
RUN wget https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.8.0-linux64.tar.bz2

Makefile

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,9 @@ itest:
1616
# it passes the integration test locally if we disable ipv6 here
1717
docker run --sysctl net.ipv6.conf.all.disable_ipv6=1 kafka_python_test /work/run_itest.sh
1818

19-
clean:
20-
rm -rf kafka-python.egg-info/ .tox/
21-
find . -name '*.pyc' -delete
22-
find . -name '__pycache__' -delete
23-
docker rmi -f kafka_python_test
24-
2519
docs:
2620
tox -e docs
2721

28-
.PHONY: docs test all
2922

3023
FLAGS=
3124
KAFKA_VERSION=0.11.0.2
@@ -76,9 +69,9 @@ clean:
7669
rm -rf docs/_build/
7770
rm -rf cover
7871
rm -rf dist
72+
rm -rf kafka-python.egg-info/ .tox/
73+
find . -name '*.pyc' -delete
74+
find . -name '__pycache__' -delete
75+
docker rmi -f kafka_python_test
7976

80-
doc:
81-
make -C docs html
82-
@echo "open file://`pwd`/docs/_build/html/index.html"
83-
84-
.PHONY: all test36 test27 test-local cov-local clean doc
77+
.PHONY: all test36 test27 test-local cov-local clean doc docs test

kafka/client.py

Lines changed: 90 additions & 71 deletions
Large diffs are not rendered by default.

kafka/consumer/group.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,6 @@ def _poll_once(self, timeout_ms, max_records):
638638
# fetched records.
639639
if not partial:
640640
self._fetcher.send_fetches()
641-
642641
return records
643642

644643
# Send any new fetches (won't resend pending fetches)

kafka/coordinator/consumer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ def _build_metadata_snapshot(self, subscription, cluster):
202202
metadata_snapshot[topic] = set(partitions)
203203
return metadata_snapshot
204204

205-
206205
def _lookup_assignor(self, name):
207206
for assignor in self.config['assignors']:
208207
if assignor.name == name:

kafka/protocol/commit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ class OffsetFetchResponse_v3(Response):
162162
('error_code', Int16)
163163
)
164164

165+
165166
class OffsetFetchRequest_v0(Request):
166167
API_KEY = 9
167168
API_VERSION = 0 # zookeeper-backed storage

kafka/protocol/message.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from kafka.codec import (has_gzip, has_snappy, has_lz4,
77
gzip_decode, snappy_decode,
88
lz4_decode, lz4_decode_old_kafka)
9-
from ..util import crc32, WeakMethod
109
from kafka.protocol.frame import KafkaBytes
1110
from kafka.protocol.struct import Struct
1211
from kafka.protocol.types import (

kafka/protocol/struct.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
from kafka.util import WeakMethod
99

10-
from ..util import WeakMethod
11-
1210

1311
class Struct(AbstractType):
1412
SCHEMA = Schema()

run_itest.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
#!/bin/bash -e
22

3-
4-
export KAFKA_VERSION='0.9.0.1'
3+
export KAFKA_VERSION='0.10.1.1'
54
./build_integration.sh
65
tox -e py27
76
tox -e py35
87
tox -e pypy
98

10-
export KAFKA_VERSION='0.10.0.0'
9+
export KAFKA_VERSION='0.11.0.2'
1110
./build_integration.sh
1211
tox -e py27
1312
tox -e py35
1413
tox -e pypy
1514

16-
export KAFKA_VERSION='0.10.1.1'
15+
export KAFKA_VERSION='1.0.1'
1716
./build_integration.sh
18-
tox -e py27
19-
tox -e py35
20-
tox -e pypy
17+
tox -e py27
18+
tox -e py35
19+
tox -e pypy

0 commit comments

Comments
 (0)