summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * Update README.mdSteven Le Roux2013-09-261-1/+1
|/ | | correct typo in readme example
* Fix #44 Add missing exception classv0.8.0David Arthur2013-09-246-17/+25
| | | | Also move the exceptions to common instead of util
* Merge pull request #45 from quixey/allow-client-idDavid Arthur2013-09-241-4/+5
|\ | | | | | | | | Allow a client id to be passed to the client +1 thanks, @jimjh
| * allow a client id to be passed to the clientJim Lim2013-09-241-4/+5
|/
* Documenting new behavior in CHANGES.mdDavid Arthur2013-09-091-0/+4
|
* Auto-adjusting consumer fetch sizeDavid Arthur2013-09-094-33/+43
| | | | | | | | | | | | | | | 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
* Fixed #42, make fetch size configurableDavid Arthur2013-09-082-4/+41
| | | | | | | | | | Was hard coded to 1024 bytes which meant that larger messages were unconsumable since they would always get split causing the consumer to stop. It would probably be best to automatically retry truncated messages with a larger request size so you don't have to know your max message size ahead of time
* Show alternative way of running tests in README.mdDavid Arthur2013-07-261-0/+12
|
* Merge branch 'issue-35'David Arthur2013-07-266-103/+583
|\ | | | | | | | | | | | | Conflicts: kafka/__init__.py kafka/consumer.py test/test_integration.py
| * Fix minor bug in offset managementMahendra M2013-07-011-1/+4
| | | | | | | | | | In the current patch get_messages(count=1) would return zero messages the first time it is invoked after a consumer was initialized.
| * Add more cleanup in consumer.stop()Mahendra M2013-06-281-5/+7
| |
| * Fix cases of single partitionMahendra M2013-06-282-2/+5
| |
| * Minor markup fixMahendra M2013-06-281-1/+1
| |
| * Fix markupsMahendra M2013-06-281-0/+2
| |
| * Fix markup in READMEMahendra M2013-06-281-1/+1
| |
| * Add TODO commentsMahendra M2013-06-271-0/+2
| |
| * Test cases for multi-process consumer and blocking APIsMahendra M2013-06-271-9/+120
| |
| * Re-init the sockets in the new processMahendra M2013-06-273-1/+16
| |
| * Fix a bug in seek.Mahendra M2013-06-271-0/+6
| | | | | | | | This was hidden because of another bug in offset management
| * Merge branch 'master' into partitionMahendra M2013-06-252-26/+40
| |\ | | | | | | | | | | | | Conflicts: kafka/consumer.py
| * | Got MultiProcessConsumer workingMahendra M2013-06-251-10/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Other changes * Put a message size restriction on the shared queue - to prevent message overload * Wait for a while after each process is started (in constructor) * Wait for a while in each child if the consumer does not return any messages Just to be nice to the CPU. * Control the start event more granularly - this prevents infinite loops if the control does not return to the generator. For eg: for msg in consumer: assert False * Update message status before yield
| * | Added some comments about message stateMahendra M2013-06-251-0/+7
| | |
| * | Implement blocking get_messages for SimpleConsumerMahendra M2013-06-252-16/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The implementation is done by using simple options to Kafka Fetch Request Also in the SimpleConsumer iterator, update the offset before the message is yielded. This is so that the consumer state is not lost if certain cases. For eg: the message is yielded and consumed by the caller, but the caller does not come back into the generator again. The message will be consumed but the status is not updated in the consumer
| * | Added the modules in __init__.pyMahendra M2013-06-251-2/+3
| | |
| * | Added more documentation and clean up duplicate codeMahendra M2013-06-251-86/+76
| | |
| * | Minor bug fixMahendra M2013-06-241-2/+3
| | |
| * | Add support for multi-process consumerMahendra M2013-06-242-48/+300
| | |
| * | Merge branch 'master' into partitionMahendra M2013-06-204-0/+109
| |\ \
| * | | Add support to consume messages from specific partitionsMahendra M2013-06-121-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | Currently the kafka SimpleConsumer consumes messages from all partitions. This commit will ensure that data is consumed only from partitions specified during init
* | | | Merge pull request #33 from mahendra/asyncproducerDavid Arthur2013-07-116-30/+509
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Support for async producer Merged locally, tests pass, +1
| * | | | Test cases for new producerMahendra M2013-06-272-4/+275
| | | | |
| * | | | Optimize sending of batch messagesMahendra M2013-06-261-6/+9
| | | | |
| * | | | Got batched mode to work properlyMahendra M2013-06-261-59/+48
| | | | |
| * | | | Make README self-containingMahendra M2013-06-261-1/+1
| | | | |
| * | | | Update README with examplesMahendra M2013-06-262-1/+12
| | | | |
| * | | | Add support for batched message sendMahendra M2013-06-261-9/+100
| | | | | | | | | | | | | | | | | | | | | | | | | Also improve on the logic for stopping the async Processor instance. Ensure that unsend messages are sent before it is stopped.
| * | | | Merge branch 'master' into asyncproducerMahendra M2013-06-252-26/+40
| |\ \ \ \ | | | |_|/ | | |/| |
| * | | | Add exports in __init__Mahendra M2013-06-241-2/+4
| | | | |
| * | | | Make the default case as 'ack on local write'Mahendra M2013-06-203-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, ensure that the case of 'no-acks' works fine In conn.send(), do not wait for the response. Wait for it only on conn.recv(). This behaviour is fine now since the connection is not shared among consumer threads etc.
| * | | | Fix import errorsMahendra M2013-06-201-3/+5
| | | | |
| * | | | Update README with new optionsMahendra M2013-06-201-0/+15
| | | | |
| * | | | Add ack support for synchronous producerMahendra M2013-06-201-10/+39
| | | | | | | | | | | | | | | | | | | | | | | | | Add support for two options in the producer - req_acks and ack_timeout The acks, if any, are passed to the caller directly
| * | | | Merge branch 'master' into asyncproducerMahendra M2013-06-134-0/+111
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | Conflicts: kafka/producer.py
| * | | | Support for async producerMahendra M2013-06-132-8/+63
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Java/Scala Kafka client supports a mechanism for sending messages asynchronously by using a queue and a thread. Messages are put on the queue and the worker thread keeps sending it to the broker. This ticket implements this feature in python We use multiprocessing instead of threads to send the messages
* | | | Adding @sandello to AUTHORS.mdDavid Arthur2013-06-261-0/+1
| | | | | | | | | | | | Thanks, @sandello!
* | | | Fixing link in CHANGES.mdDavid Arthur2013-06-251-1/+1
| | | |
* | | | Change auto_commit to False in SimpleConsumerDavid Arthur2013-06-253-1/+5
| |_|/ |/| | | | | | | | | | | | | | Also start a change log for important stuff like this Closes #34
* | | Merge pull request #31 from mahendra/lazythreadDavid Arthur2013-06-252-26/+40
|\ \ \ | |_|/ |/| | Optimize auto-commit process
| * | Merge branch 'master' into lazythreadMahendra M2013-06-254-0/+109
| |\ \ | |/ / |/| |
* | | Merge pull request #32 from mahendra/keyedDavid Arthur2013-06-134-0/+109
|\ \ \ | |_|/ |/| | Implement support for keyed messages