Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Starting work on fixing offset commitsissue-26 | David Arthur | 2013-06-01 | 2 | -5/+63 |
| | | | | | | | | * Update the "public" offset before yielding the message * Add an option to SimpleConsumer.commit that excludes the current offset Ref #26 | ||||
* | PEP8-ify most of the files | Mahendra M | 2013-05-29 | 7 | -128/+309 |
| | | | | consumer.py and conn.py will be done later after pending merges | ||||
* | Removing the bit about offsets | David Arthur | 2013-05-29 | 1 | -5/+0 |
| | |||||
* | Minor bug fixes | Mahendra M | 2013-05-29 | 2 | -12/+35 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | Merge branch 'issue-22' | David Arthur | 2013-05-28 | 2 | -0/+45 |
|\ | | | | | | | | | Conflicts: kafka/consumer.py | ||||
| * | Closes #22 | David Arthur | 2013-05-28 | 2 | -20/+21 |
| | | | | | | | | Removed get_messages API, added test for get_pending | ||||
| * | Missed a doc string | Mahendra M | 2013-05-27 | 1 | -0/+2 |
| | | |||||
| * | New API for getting a specified set of messages | Mahendra M | 2013-05-27 | 1 | -0/+18 |
| | | | | | | | | | | | | | | | | | | This will be easier to use in some cases where we have to get only a specified set of messages. This API uses the __iter__ API internally, but maintains the state to give back only the required set of messages API is - get_messages(count=1) | ||||
| * | New API for checking pending message count | Mahendra M | 2013-05-27 | 1 | -0/+24 |
| | | |||||
* | | Adding a debug statement | David Arthur | 2013-05-28 | 1 | -1/+2 |
| | | |||||
* | | Merge pull request #23 from mahendra/autocommit | David Arthur | 2013-05-28 | 2 | -13/+23 |
|\ \ | |/ |/| | Auto commit timer is not periodic | ||||
| * | Auto commit timer is not periodic | Mahendra M | 2013-05-28 | 2 | -13/+23 |
|/ | | | | | | | The auto commit timer is one-shot. After the first commit, it does not fire again. This ticket fixes the issue. Also, in util.ReentrantTimer(), some duplicate code was cleaned up | ||||
* | Update README.md | David Arthur | 2013-05-07 | 1 | -1/+5 |
| | |||||
* | Fixes #14 | David Arthur | 2013-04-11 | 1 | -1/+1 |
| | |||||
* | A few fixes for offset APIs in 0.8.1 | David Arthur | 2013-04-02 | 2 | -3/+1 |
| | |||||
* | Update README and setup.py with new version | David Arthur | 2013-04-02 | 2 | -44/+57 |
| | |||||
* | Update kafka-src to latest trunk, enable 0.8.1 features | David Arthur | 2013-04-02 | 4 | -5/+3 |
| | |||||
* | Typo in example.py | David Arthur | 2013-04-02 | 1 | -1/+1 |
| | |||||
* | Update kafka-src to latest 0.8 | David Arthur | 2013-04-02 | 4 | -5/+17 |
| | | | | Fix a broken test (100k was too much to send in one batch) | ||||
* | Update README with new APIs | David Arthur | 2013-04-02 | 1 | -94/+19 |
| | |||||
* | Bring acks and timeout down to the client | David Arthur | 2013-04-02 | 3 | -10/+11 |
| | |||||
* | Refactoring a bit, cleanup for 0.8 | David Arthur | 2013-04-02 | 8 | -183/+215 |
| | | | | Marking some stuff as not compatible for 0.8 (will be added in 0.8.1) | ||||
* | Big code re-org | David Arthur | 2013-04-02 | 11 | -673/+868 |
| | |||||
* | Some work on a simple consumer | David Arthur | 2013-04-02 | 3 | -11/+91 |
| | |||||
* | Started on a simple producer and consumer | David Arthur | 2013-04-02 | 3 | -7/+84 |
| | |||||
* | Removing __main__ stuff from client.py | David Arthur | 2013-04-02 | 1 | -66/+0 |
| | |||||
* | Integration tests passing | David Arthur | 2013-04-02 | 8 | -1384/+761 |
| | |||||
* | Protocol and low-level client done, adding tests | David Arthur | 2013-04-02 | 6 | -272/+396 |
| | |||||
* | Fix a bunch of bugs | David Arthur | 2013-04-02 | 2 | -65/+138 |
| | |||||
* | First pass of cleanup/refactoring | David Arthur | 2013-04-02 | 3 | -225/+487 |
| | | | | Also added a bunch of docstrings | ||||
* | Starting work on 0.8 compat | David Arthur | 2013-04-02 | 2 | -0/+562 |
| | |||||
* | Adding client_fetch_size to queue interface | David Arthur | 2013-04-02 | 2 | -3/+57 |
| | | | | Also more docs | ||||
* | Fix some typos, closes #12 | David Arthur | 2013-01-26 | 1 | -2/+2 |
| | |||||
* | Merge pull request #11 from anentropic/master | David Arthur | 2012-11-22 | 1 | -2/+2 |
|\ | | | | | fix docs: iter_messages doesn't (any longer?) take a FetchRequest | ||||
| * | fix docs: iter_messages doesn't (any longer?) take a FetchRequest | anentropic | 2012-11-22 | 1 | -2/+2 |
|/ | | | ...it takes the same args and instantiates its own one | ||||
* | Add some docs and KafkaQueue config | David Arthur | 2012-11-19 | 2 | -19/+48 |
| | | | | Ref #8 | ||||
* | Add a Queue-like producer/consumer | David Arthur | 2012-11-19 | 3 | -0/+148 |
| | | | | | | | | | | | | | | | | | 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 | ||||
* | Update README.md | David Arthur | 2012-11-16 | 1 | -2/+4 |
| | |||||
* | Add Snappy support0.1-alpha | David Arthur | 2012-11-16 | 6 | -21/+144 |
| | | | | Fixes #2 | ||||
* | Update LICENSE with author+year | David Arthur | 2012-11-16 | 1 | -2/+1 |
| | |||||
* | Integration test writes to a file instead of stdout | David Arthur | 2012-10-30 | 1 | -5/+6 |
| | |||||
* | Clean up imports in client, fixed #5 | David Arthur | 2012-10-30 | 1 | -3/+0 |
| | |||||
* | Replace socket.send with socket.sendall, Fixes #6 | David Arthur | 2012-10-30 | 1 | -5/+5 |
| | |||||
* | Adding a test for 10k messages | David Arthur | 2012-10-30 | 1 | -0/+10 |
| | |||||
* | Merge pull request #4 from benfred/master | David Arthur | 2012-10-29 | 1 | -1/+1 |
|\ | | | | | exception handling fix | ||||
| * | error handling fix | Ben Frederickson | 2012-10-25 | 1 | -1/+1 |
|/ | |||||
* | Fixing install instructions | David Arthur | 2012-10-03 | 1 | -2/+3 |
| | |||||
* | Adding link to Kafka | David Arthur | 2012-10-03 | 1 | -0/+2 |
| | |||||
* | Updating kafka-src to 0.7.2 | David Arthur | 2012-10-03 | 2 | -1/+1 |
| | |||||
* | Isn't it nice when tests actually find bugs | David Arthur | 2012-10-02 | 2 | -6/+51 |
| |