summaryrefslogtreecommitdiff
path: root/kafka/protocol.py
Commit message (Collapse)AuthorAgeFilesLines
* Improve error handling and tests w.r.t. codecsPatrick Lucas2014-05-071-1/+18
| | | | | | | | | | Add function kafka.protocol.create_message_set() that takes a list of payloads and a codec and returns a message set with the desired encoding. Introduce kafka.common.UnsupportedCodecError, raised if an unknown codec is specified. Include a test for the new function.
* Merge branch 'teach_producers_about_compression' into producer_compressionMark Roberts2014-05-071-11/+12
|\ | | | | | | | | | | Conflicts: servers/0.8.0/kafka-src test/test_unit.py
| * Add 'codec' parameter to ProducerPatrick Lucas2014-05-031-11/+12
| | | | | | | | | | Adds a codec parameter to Producer.__init__ that lets the user choose a compression codec to use for all messages sent by it.
* | Reinstate test_integrate, make test_protocol more explicit, create testutilMark Roberts2014-04-081-1/+1
| |
* | Explicit testing of protocol errors. Make tests more explicit, and start ↵Mark Roberts2014-04-081-4/+3
|/ | | | working on intermittent failures in test_encode_fetch_request and test_encode_produc_request
* Merge pull request #98 from waliaashish85/devOmar2014-01-161-4/+2
|\ | | | | Changes for aligning code with offset fetch and commit APIs (Kafka 0.8.1)
| * Deleting client_id from offset commit and fetch response as per Kafka trunk codeAshish Walia2014-01-131-2/+0
| |
| * Syncing offset commit and fetch api keys with Kafka trunk codeAshish Walia2014-01-131-2/+2
| |
* | Add note about questionable error handling while decoding messages.Omar Ghishan2014-01-061-0/+8
| | | | | | | | Will remove once any error handling issues are resolved.
* | Add and fix comments to protocol.pyOmar Ghishan2014-01-061-6/+10
|/
* flake8 pass (pep8 and pyflakes)mrtheb2013-10-031-19/+19
|
* style: remove extra bracketsVetoshkin Nikita2013-10-031-1/+1
|
* style: fix camelCase variable namesVetoshkin Nikita2013-10-031-13/+13
| | | | | | Conflicts: kafka/util.py
* Fix #44 Add missing exception classv0.8.0David Arthur2013-09-241-3/+3
| | | | Also move the exceptions to common instead of util
* Auto-adjusting consumer fetch sizeDavid Arthur2013-09-091-6/+10
| | | | | | | | | | | | | | | Related to #42 Adds new ConsumerFetchSizeTooSmall exception that is thrown when `_decode_message_set_iter` gets a BufferUnderflowError but has not yet yielded a message In this event, SimpleConsumer will increase the fetch size by 1.5 and continue the fetching loop while _not_ increasing the offset (basically just retries the request with a larger fetch size) Once the consumer fetch size has been increased, it will remain increased while SimpleConsumer fetches from that partition
* PEP8-ify most of the filesMahendra M2013-05-291-65/+166
| | | | consumer.py and conn.py will be done later after pending merges
* A few fixes for offset APIs in 0.8.1David Arthur2013-04-021-2/+0
|
* Refactoring a bit, cleanup for 0.8David Arthur2013-04-021-1/+1
| | | | Marking some stuff as not compatible for 0.8 (will be added in 0.8.1)
* Big code re-orgDavid Arthur2013-04-021-0/+457