summaryrefslogtreecommitdiff
path: root/kafka/client.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Finish making remaining files pep8 readyMahendra M2013-06-041-60/+109
|
* Minor bug fixesMahendra M2013-05-291-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * When you initiate a producer with a non-existant queue, the queue is created. However this partition info is not reflected in KafkaClient() immediately. So, we wait for a second and try loading it again. Without this fix, if we do producer.send_messages() after creating a new queue, the library will throw a StopIteration exception. * In SimpleConsumer(), the defaults are not as mentioned in the comments. Fix this (or do we change the documentation?) * There was a problem with the way the consumer iterator worked. for eg: assume that there were 10 messages in the queue/topic and you iterate over it as - for msg in consumer: print (msg) At the end of this, 'offset' that is saved is 10. So, if you run the above loop again, the last message (10) is repeated. This can be fixed by adjusting the offset counter before fetching the message * Avoid some code repeat in consumer.commit() * Fix a bug in send_offset_commit_request() invocation in consumer.py * Fix missing imports
* A few fixes for offset APIs in 0.8.1David Arthur2013-04-021-1/+1
|
* Update kafka-src to latest trunk, enable 0.8.1 featuresDavid Arthur2013-04-021-2/+0
|
* Update kafka-src to latest 0.8David Arthur2013-04-021-1/+1
| | | | Fix a broken test (100k was too much to send in one batch)
* Bring acks and timeout down to the clientDavid Arthur2013-04-021-3/+3
|
* Refactoring a bit, cleanup for 0.8David Arthur2013-04-021-131/+136
| | | | Marking some stuff as not compatible for 0.8 (will be added in 0.8.1)
* Big code re-orgDavid Arthur2013-04-021-641/+4
|
* Some work on a simple consumerDavid Arthur2013-04-021-4/+32
|
* Started on a simple producer and consumerDavid Arthur2013-04-021-6/+48
|
* Removing __main__ stuff from client.pyDavid Arthur2013-04-021-66/+0
|
* Integration tests passingDavid Arthur2013-04-021-498/+741
|
* Add a Queue-like producer/consumerDavid Arthur2012-11-191-0/+3
| | | | | | | | | | | | | | | | | Creates a producer process and one consumer process per partition. Uses `multiprocessing.Queue` for communication between the parent process and the producer/consumers. ```python kafka = KafkaClient("localhost", 9092) q = KafkaQueue(kafka, client="test-queue", partitions=[0,1]) q.put("test") q.get() q.close() kafka.close() ``` Ref #8
* Add Snappy support0.1-alphaDavid Arthur2012-11-161-1/+23
| | | | Fixes #2
* Clean up imports in client, fixed #5David Arthur2012-10-301-3/+0
|
* Replace socket.send with socket.sendall, Fixes #6David Arthur2012-10-301-5/+5
|
* error handling fixBen Frederickson2012-10-251-1/+1
|
* Isn't it nice when tests actually find bugsDavid Arthur2012-10-021-4/+3
|
* Renaming kafka.py to client.pyDavid Arthur2012-10-021-0/+610