Skip to content

WIP: KafkaProducer #333

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

Closed
wants to merge 11 commits into from
4 changes: 2 additions & 2 deletions kafka/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
from kafka.protocol import (
create_message, create_gzip_message, create_snappy_message
)
from kafka.producer import SimpleProducer, KeyedProducer
from kafka.producer import SimpleProducer, KeyedProducer, KafkaProducer
from kafka.partitioner import RoundRobinPartitioner, HashedPartitioner
from kafka.consumer import SimpleConsumer, MultiProcessConsumer, KafkaConsumer

__all__ = [
'KafkaClient', 'KafkaConnection', 'SimpleProducer', 'KeyedProducer',
'RoundRobinPartitioner', 'HashedPartitioner', 'SimpleConsumer',
'MultiProcessConsumer', 'create_message', 'create_gzip_message',
'create_snappy_message', 'KafkaConsumer',
'create_snappy_message', 'KafkaConsumer', 'KafkaProducer'
]
5 changes: 3 additions & 2 deletions kafka/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ class UnknownTopicOrPartitionError(BrokerResponseError):
message = 'UNKNOWN_TOPIC_OR_PARTITON'


class InvalidFetchRequestError(BrokerResponseError):
# Formerly known (incorrectly) as InvalidFetchRequestError
class InvalidMessageSizeError(BrokerResponseError):
errno = 4
message = 'INVALID_FETCH_SIZE'
message = 'INVALID_MESSAGE_SIZE'


class LeaderNotAvailableError(BrokerResponseError):
Expand Down
3 changes: 2 additions & 1 deletion kafka/producer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from .simple import SimpleProducer
from .keyed import KeyedProducer
from .kafka import KafkaProducer

__all__ = [
'SimpleProducer', 'KeyedProducer'
'SimpleProducer', 'KeyedProducer', 'KafkaProducer'
]
Loading