Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Merge pull request #217 from locationlabs/transaction | Dana Powers | 2014-09-10 | 1 | -0/+117 | |
|\ \ | |/ |/| | Commit/rollback consumer offsets via context manager | |||||
| * | Rename KafkaTransaction to OffsetCommitContext for clarity. | Jesse Myers | 2014-09-03 | 1 | -20/+20 | |
| | | ||||||
| * | Add transaction context manager. | Jesse Myers | 2014-08-30 | 1 | -0/+117 | |
| | | ||||||
* | | Merge pull request #223 from dpkp/metadata_refactor | Dana Powers | 2014-09-08 | 3 | -121/+255 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 client unit tests for has_metadata_for_topic and ensure_topic_exists | Dana Powers | 2014-09-01 | 1 | -1/+63 | |
| | | | ||||||
| * | | Add test for sending produce request to unknown topic w/o auto-creation | Dana Powers | 2014-09-01 | 1 | -0/+25 | |
| | | | ||||||
| * | | Use standard exceptions in client._get_leader_for_partition() | Dana Powers | 2014-09-01 | 3 | -18/+20 | |
| | | | | | | | | | | | | | | | | | | - drop custom PartitionUnavailable exception - raise UnknownTopicOrPartitionError or LeaderNotAvailableError - add tests for exception raises | |||||
| * | | load_metadata_for_topics should raise exceptions on explicit topic args | Dana Powers | 2014-09-01 | 1 | -25/+46 | |
| | | | ||||||
| * | | Refactor internal metadata dicts in KafkaClient | Dana Powers | 2014-09-01 | 1 | -1/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | - 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 | -4/+3 | |
| | | | ||||||
| * | | Improve metadata protocol handling | Dana Powers | 2014-09-01 | 2 | -109/+123 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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 | 16 | -299/+334 | |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | |||||
| * | | | 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/+6 | |
| | | | | ||||||
| * | | | Fix more tests, only multiprocessing consumer ones remaining | Bruno Renié | 2014-09-03 | 6 | -20/+32 | |
| | | | | ||||||
| * | | | Bytes in self.msg() | Bruno Renié | 2014-09-03 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | More bytes topics | Bruno Renié | 2014-09-03 | 2 | -2/+2 | |
| | | | | ||||||
| * | | | Encode topic directly | Bruno Renié | 2014-09-03 | 1 | -1/+2 | |
| | | | | ||||||
| * | | | Fix bytes interpolation | Bruno Renié | 2014-09-03 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | Topic in bytes | Bruno Renié | 2014-09-03 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | Fix stderr capture | Bruno Renié | 2014-09-03 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | Fix log capture on py3 | Bruno Renié | 2014-09-03 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | Make all unit tests pass on py3.3/3.4 | Bruno Renié | 2014-09-03 | 11 | -241/+257 | |
| | | | | ||||||
| * | | | Use base unittest or unittest2 depending on python version | Bruno Renié | 2014-09-03 | 12 | -29/+37 | |
| |/ / | ||||||
* | | | Cleanup tests: no more import *; remove unused | Dana Powers | 2014-09-04 | 9 | -54/+26 | |
| | | | ||||||
* | | | Another attempt to fix failover test flapping | Dana Powers | 2014-09-04 | 1 | -16/+23 | |
| | | | ||||||
* | | | Import cleanups in tests | Dana Powers | 2014-09-04 | 6 | -24/+38 | |
| | | | ||||||
* | | | Merge pull request #222 from dpkp/fix_socket_timeout_test | Mark Roberts | 2014-09-04 | 2 | -12/+19 | |
|\ \ \ | |/ / |/| | | Fix socket timeout test -- mock the side_effect | |||||
| * | | Fix socket timeout test -- mock the side_effect | Dana Powers | 2014-09-01 | 2 | -12/+19 | |
| |/ | ||||||
* | | just fixing a silly except formatting mistake | Zack Dever | 2014-08-29 | 1 | -1/+1 | |
|/ | ||||||
* | Fixup producer failover tests to avoid consumer message count flap | Dana Powers | 2014-08-27 | 1 | -7/+8 | |
| | | | | | check message counts via consumer.pending() (OffsetRequest) rather than relying on consumer message iterator (FetchRequest) | |||||
* | Merge pull request #213 from dpkp/improve_failover_tests | Dana Powers | 2014-08-27 | 1 | -45/+67 | |
|\ | | | | | | | | | Warn users about async producer Refactor producer failover tests (5x speedup) Skip async producer failover test for now, because it is broken | |||||
| * | Improve leader failover tests; note that async produce failover is broken -- ↵ | Dana Powers | 2014-08-26 | 1 | -45/+67 | |
| | | | | | | | | so skip that test for now | |||||
* | | Add a test for Issue #135 (Spurious ConsumerFetchSizeTooSmall error) | Dana Powers | 2014-08-26 | 1 | -0/+19 | |
|/ | ||||||
* | Merge pull request #208 from dpkp/add_pylint_to_tox_ini | Dana Powers | 2014-08-26 | 6 | -51/+41 | |
|\ | | | | | Use PyLint for static error checking | |||||
| * | Add pylint to tox.ini; test both kafka and test; default to error-checking ↵ | Dana Powers | 2014-08-25 | 6 | -51/+41 | |
| | | | | | | | | only; fixup errors; skip kafka/queue.py | |||||
* | | Add producer unit test (test/test_producer.py); check supported types in ↵ | Dana Powers | 2014-08-26 | 1 | -0/+31 | |
|/ | | | | send_messages | |||||
* | Merge pull request #196 from dpkp/reinit_connection_error | Dana Powers | 2014-08-22 | 1 | -22/+117 | |
|\ | | | | | Improve KafkaConnection with more tests | |||||
| * | Add a mock to sock.recv() in the test_conn setUp method. Returns 2 packet ↵ | Dana Powers | 2014-08-19 | 1 | -61/+25 | |
| | | | | | | | | payloads, then '', then error | |||||
| * | Fix test_conn tests wrt _dirty / _sock | Dana Powers | 2014-08-19 | 1 | -9/+4 | |
| | | ||||||
| * | Remove unused imports from test/test_conn.py | Dana Powers | 2014-08-19 | 1 | -2/+0 | |
| | | ||||||
| * | Implement last of the skipped test_conn.py tests | Dana Powers | 2014-08-19 | 1 | -2/+18 | |
| | | ||||||
| * | Implement a few more skipped tests in test/test_conn.py | Dana Powers | 2014-08-19 | 1 | -4/+19 | |
| | | ||||||
| * | Move common connection testing code to setUp method | Dana Powers | 2014-08-19 | 1 | -98/+45 | |
| | | ||||||
| * | Implementing more skipped connection tests (send and recv) | Dana Powers | 2014-08-19 | 1 | -6/+82 | |
| | | ||||||
| * | Cleanup some connection tests in test/test_conn.py | Dana Powers | 2014-08-19 | 1 | -14/+11 | |
| | | ||||||
| * | Improve KafkaConnection testing: mock socket.create_connection; add tests ↵ | Dana Powers | 2014-08-19 | 1 | -8/+95 | |
| | | | | | | | | for __init__ and send | |||||
* | | Merge pull request #204 from mdaniel/better-type-errors | Dana Powers | 2014-08-22 | 1 | -12/+27 | |
|\ \ | | | | | | | Better type errors | |||||
| * | | Failing test for write_int and write_short | Matthew L Daniel | 2014-08-22 | 1 | -0/+16 | |
| | | | ||||||
| * | | PEP8 fixes | Matthew L Daniel | 2014-08-22 | 1 | -12/+11 | |
| |/ |