Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | _should_auto_commit is private | Dana Powers | 2014-12-15 | 1 | -2/+2 | |
| | | ||||||
| * | Support setting offsets in set_topic_partitions(); reorganize offsets ↵ | Dana Powers | 2014-12-15 | 1 | -127/+151 | |
| | | | | | | | | initialization | |||||
| * | _client is private var | Dana Powers | 2014-12-15 | 1 | -7/+11 | |
| | | ||||||
| * | Move kafka._msg_iter initialization from __init__() to next() | Dana Powers | 2014-12-15 | 1 | -6/+7 | |
| | | ||||||
| * | self._topics is private; fixup topic iterations for new TopicAndPartition ↵ | Dana Powers | 2014-12-15 | 1 | -44/+67 | |
| | | | | | | | | list; add more type checks to set_topic_and_partitions | |||||
| * | Add set_topic_partitions method to configure topics/partitions to consume | Dana Powers | 2014-12-15 | 1 | -8/+59 | |
| | | ||||||
| * | Use client.get_partition_ids_for_topic | Dana Powers | 2014-12-15 | 1 | -4/+4 | |
| | | ||||||
| * | Use configure() to check and set configuration keys | Dana Powers | 2014-12-15 | 2 | -59/+71 | |
| | | ||||||
| * | add private methods _set_consumer_timeout_start() and _check_consumer_timeout() | Dana Powers | 2014-12-15 | 1 | -8/+13 | |
| | | ||||||
| * | Handle FailedPayloadsError on client.send_fetch_request; permit offsets(); ↵ | Dana Powers | 2014-12-15 | 1 | -16/+35 | |
| | | | | | | | | update docstring | |||||
| * | A simpler kafka consumer: | Dana Powers | 2014-12-15 | 2 | -0/+439 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` kafka = KafkaConsumer('topic1') for m in kafka: print m kafka = KafkaConsumer('topic1', 'topic2', group_id='my_consumer_group', auto_commit_enable=True, auto_commit_interval_ms=30 * 1000, auto_offset_reset='smallest') for m in kafka: process_message(m) kafka.task_done(m) ``` | |||||
* | | added a send_messages api to KeyedProducer | Jordan Shaw | 2014-12-15 | 1 | -0/+4 | |
|/ | | | | Signed-off-by: Jordan Shaw <jordan@pubnub.com> | |||||
* | fix pending method | Nickolai Novik | 2014-12-15 | 1 | -1/+1 | |
| | ||||||
* | Added raise of TypeError for non bytes key | Lou Marvin Caraig | 2014-11-26 | 1 | -1/+6 | |
| | ||||||
* | Key is passed when creating messages for both async=False and async=True | Lou Marvin Caraig | 2014-11-26 | 2 | -6/+7 | |
| | ||||||
* | Added private method _send_messages that can accept kwargs | Lou Marvin Caraig | 2014-11-26 | 1 | -0/+2 | |
| | ||||||
* | Added optional argument key to create_message_set function | Lou Marvin Caraig | 2014-11-26 | 1 | -4/+4 | |
| | ||||||
* | Merge pull request #242 from wizzat/pr_225 | Mark Roberts | 2014-09-23 | 1 | -1/+1 | |
|\ | | | | | Resolve merge conflict in PR #225 | |||||
| * | Resolve merge conflict in PR #225 | Mark Roberts | 2014-09-23 | 1 | -1/+1 | |
| | | ||||||
* | | Fix SimpleConsumer timeout behavior in get_messages (Issue 237) | Dana Powers | 2014-09-21 | 1 | -4/+5 | |
|/ | ||||||
* | Merge pull request #233 from dpkp/str_join_speedup | Mark Roberts | 2014-09-11 | 1 | -53/+71 | |
|\ | | | | | Improve string concatenation performance on pypy and python 3 | |||||
| * | Use b''.join([]) instead of += to speedup code | Dana Powers | 2014-09-10 | 1 | -53/+71 | |
| | | ||||||
* | | Merge pull request #232 from dpkp/directory_layout | Dana Powers | 2014-09-10 | 14 | -870/+947 | |
|\ \ | |/ |/| | Separate Consumer/Producer/Partitioner modules | |||||
| * | Separate consumers/producers/partitioners | Dana Powers | 2014-09-10 | 14 | -870/+947 | |
| | | ||||||
* | | Merge pull request #217 from locationlabs/transaction | Dana Powers | 2014-09-10 | 1 | -0/+170 | |
|\ \ | |/ |/| | Commit/rollback consumer offsets via context manager | |||||
| * | Rename KafkaTransaction to OffsetCommitContext for clarity. | Jesse Myers | 2014-09-03 | 1 | -16/+16 | |
| | | ||||||
| * | Improve documentation in example | Jesse Myers | 2014-08-30 | 1 | -1/+2 | |
| | | ||||||
| * | Add transaction context manager. | Jesse Myers | 2014-08-30 | 1 | -0/+169 | |
| | | ||||||
* | | Merge pull request #223 from dpkp/metadata_refactor | Dana Powers | 2014-09-08 | 5 | -116/+224 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Metadata Refactor * add MetadataRequest and MetadataResponse namedtuples * add TopicMetadata namedtuple * add error codes to Topic and Partition Metadata * add KafkaClient.send_metadata_request() method * KafkaProtocol.decode_metadata_response changed to return a MetadataResponse object so that it is consistent with server api: [broker_list, topic_list] * raise server exceptions in load_metadata_for_topics(*topics) unless topics is null (full refresh) * Replace non-standard exceptions (LeaderUnavailable, PartitionUnavailable) with server standard exceptions (LeaderNotAvailableError, UnknownTopicOrPartitionError) Conflicts: kafka/client.py test/test_client.py test/test_producer_integration.py test/test_protocol.py | |||||
| * | | Add test for sending produce request to unknown topic w/o auto-creation | Dana Powers | 2014-09-01 | 1 | -2/+2 | |
| | | | ||||||
| * | | Use standard exceptions in client._get_leader_for_partition() | Dana Powers | 2014-09-01 | 2 | -19/+28 | |
| | | | | | | | | | | | | | | | | | | - drop custom PartitionUnavailable exception - raise UnknownTopicOrPartitionError or LeaderNotAvailableError - add tests for exception raises | |||||
| * | | Raise UnknownTopicOrPartitionError immediately in ensure_topic_exists -- ↵ | Dana Powers | 2014-09-01 | 1 | -0/+4 | |
| | | | | | | | | | | | | server is not auto-creating | |||||
| * | | load_metadata_for_topics should raise exceptions on explicit topic args | Dana Powers | 2014-09-01 | 1 | -12/+40 | |
| | | | ||||||
| * | | Dont need to use callbacks for offset fetch requests | Dana Powers | 2014-09-01 | 1 | -4/+3 | |
| | | | ||||||
| * | | Refactor internal metadata dicts in KafkaClient | Dana Powers | 2014-09-01 | 3 | -32/+67 | |
| | | | | | | | | | | | | | | | | | | | | | | | | - use helper methods not direct access - add get_partition_ids_for_topic - check for topic and partition errors during load_metadata_for_topics - raise LeaderNotAvailableError when topic is being auto-created or UnknownTopicOrPartitionError if auto-creation off | |||||
| * | | No more custom LeaderUnavailableError exception -- raise LeaderNotAvailableError | Dana Powers | 2014-09-01 | 2 | -7/+3 | |
| | | | ||||||
| * | | if error code is not recognized in check_error: raise UnknownError | Dana Powers | 2014-09-01 | 1 | -2/+6 | |
| | | | ||||||
| * | | Rearrange KafkaClient method order to group client metadata methods together | Dana Powers | 2014-09-01 | 1 | -18/+18 | |
| | | | ||||||
| * | | Improve metadata protocol handling | Dana Powers | 2014-09-01 | 3 | -36/+69 | |
| |/ | | | | | | | | | | | | | | | | | | | - add MetadataRequest and MetadataResponse namedtuples - add TopicMetadata namedtuple - add error codes to Topic and Partition Metadata - add KafkaClient.send_metadata_request() method - KafkaProtocol.decode_metadata_response changed to return a MetadataResponse object so that it is consistent with server api: [broker_list, topic_list] | |||||
* | | Merge pull request #227 from wizzat-feature/py3 | Dana Powers | 2014-09-07 | 8 | -42/+77 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 3 Support Conflicts: kafka/producer.py test/test_client.py test/test_client_integration.py test/test_codec.py test/test_consumer.py test/test_consumer_integration.py test/test_failover_integration.py test/test_producer.py test/test_producer_integration.py test/test_protocol.py test/test_util.py | |||||
| * | | Update kafka.util.crc32 to unsigned everywhere | Mark Roberts | 2014-09-03 | 2 | -13/+4 | |
| | | | ||||||
| * | | Fix the multiprocessing tests for python 3 | Mark Roberts | 2014-09-03 | 1 | -1/+1 | |
| | | | ||||||
| * | | Fix test errors related to mocks | Mark Roberts | 2014-09-03 | 1 | -3/+4 | |
| | | | ||||||
| * | | Fix more tests, only multiprocessing consumer ones remaining | Bruno Renié | 2014-09-03 | 2 | -3/+7 | |
| | | | ||||||
| * | | Bytes in self.msg() | Bruno Renié | 2014-09-03 | 1 | -1/+1 | |
| | | | ||||||
| * | | Use built-in next() | Bruno Renié | 2014-09-03 | 2 | -3/+3 | |
| | | | ||||||
| * | | Cross-python iteritems | Bruno Renié | 2014-09-03 | 1 | -1/+3 | |
| | | | ||||||
| * | | client_id in bytes | Bruno Renié | 2014-09-03 | 1 | -1/+1 | |
| | | | ||||||
| * | | Make all unit tests pass on py3.3/3.4 | Bruno Renié | 2014-09-03 | 7 | -29/+66 | |
| |/ | ||||||
* | | Minor import cleanups | Dana Powers | 2014-09-04 | 2 | -7/+7 | |
| | |