385f2d80f9
Refactor away _get_conn_for_broker. Fix bug in _get_conn
Mark Roberts
2014-04-09 11:19:32 -07:00
12fae12ef2
Add final tests for 100% coverage of protocol.py from test/test_protocol.py
Mark Roberts
2014-04-09 10:33:40 -07:00
8f179d8607
Add encode_offset_fetch_request test
Mark Roberts
2014-04-09 02:58:36 -07:00
58b4d0ff7a
Add commit offset request test
Mark Roberts
2014-04-09 02:47:07 -07:00
1cb27f99d6
Add tests for encode_offset_request
Mark Roberts
2014-04-09 02:30:43 -07:00
5c58151e6f
Add python-snappy to tox dependencies. Fix snappy protocol test
Mark Roberts
2014-04-09 02:11:39 -07:00
115c20ced3
Convert test_encode_fetch_request to struct.pack format, improve test reliability
Mark Roberts
2014-04-09 01:54:01 -07:00
853d45247e
Update more tests, fix intermittent failure
Mark Roberts
2014-04-09 01:26:18 -07:00
a3c781fda5
Merge branch 'master' into add_tests
Mark Roberts
2014-04-08 23:45:53 -07:00
3bde6d6b1c
Convert more tests to struct.pack
Mark Roberts
2014-04-08 23:33:26 -07:00
ac9cf9e944
Convert serveral tests to struct.pack
Mark Roberts
2014-04-08 22:10:06 -07:00
d7c5bbf7d4
Reinstate test_integrate, make test_protocol more explicit, create testutil
Mark Roberts
2014-04-08 11:02:57 -07:00
f0def436c6
Explicit testing of protocol errors. Make tests more explicit, and start working on intermittent failures in test_encode_fetch_request and test_encode_produc_request
Mark Roberts
2014-04-08 01:28:59 -07:00
d59cbf6206
Comment out all of test_integration because it currently does not work
Mark Roberts
2014-04-08 01:27:04 -07:00
80b3335ed2
Split test files, modify test_protocol
Mark Roberts
2014-04-08 01:09:23 -07:00
6ee151427c
Remove test support for py26 since it's broken
Mark Roberts
2014-04-07 19:44:40 -07:00
1fd35a558f
added random_start param to SimpleProducer to enable/disable randomization of the initial partition messages are published to
Alex Couture-Beil
2014-04-01 18:24:39 -07:00
4d0722aef2
Changed randomization to simply randomize the initial starting partition of the sorted list of partition rather than completely randomizing the initial ordering before round-robin cycling the partitions
Alex Couture-Beil
2014-04-01 18:07:24 -07:00
7d425d07c2
Commit in seek if autocommit
Mark Roberts
2014-03-27 10:26:52 -07:00
e5af3170f3
Make seek(); commit(); work without commit discarding the seek change
Mark Roberts
2014-03-25 11:07:31 -07:00
9bed11db98
Merge pull request #134 from wizzat/conn_refactor
v0.9.0
Dana Powers
2014-03-21 23:15:28 -07:00
c4cbe04cf1
If a broker refuses the connection, try the next
stephenarmstrong
2014-03-13 15:14:32 -07:00
a81be573b2
Modified SimpleProducer-based integration tests to work now that the initial round-robin ordering of partitions have been randomized
Alex Couture-Beil
2014-03-12 10:53:06 -07:00
92fefb06fa
Modified SimpleProducer to randomize the initial round robin ordering of partitions to prevent the first message from always being published to partition 0.
Alex Couture-Beil
2014-03-11 18:09:52 -07:00
51910f9818
clean up after comments from @rdiomar
mrtheb
2014-02-15 13:43:56 -05:00
5e5d7097a7
Changes based on comments by @rdiomar, plus added LeaderUnavailableError for clarity
mrtheb
2014-02-15 11:00:35 -05:00
a2191e5be5
Support list (or comma-separated) of hosts (replaces host and port arguments)
mrtheb
2014-02-09 13:44:47 -05:00
84de472a4d
Merge branch 'master' into multihosts
mrtheb
2014-01-31 22:43:59 -05:00
b253166bec
check for broker None in send_broker_aware_request (added test for it)
mrtheb
2014-01-31 22:08:08 -05:00
72fdf391db
Merge branch 'master' into develop
mrtheb
2014-01-31 21:06:20 -05:00
8bcf0f0940
Handle cases for partition with leader=-1 (not defined)
Marc Labbe
2014-01-31 20:06:30 -05:00
4abf7ee1fb
Merge pull request #111 from rdiomar/multitopic_producers
Dana Powers
2014-01-30 17:00:55 -08:00
c9d9d0aad2
Resolve conflicts for #106
Omar Ghishan
2014-01-28 14:12:49 -08:00
f6df696e0a
Use TopicAndPartition when producing async messages
Omar Ghishan
2014-01-27 11:16:53 -08:00
a46898d015
Make producers take a topic argument at send rather than init time This allows a single producer to be used to send to multiple topics. See https://github.com/mumrah/kafka-python/issues/110
Omar Ghishan
2014-01-23 19:34:09 -08:00
daabc9f28d
Deleting client_id from offset commit and fetch response as per Kafka trunk code
Ashish Walia
2014-01-07 12:30:52 -05:00
55816493c7
Syncing offset commit and fetch api keys with Kafka trunk code
Ashish Walia
2014-01-07 12:27:50 -05:00
a0c7141e2c
Change log.error() back to log.exception()
Omar Ghishan
2014-01-08 11:46:10 -08:00
317c848016
Change BufferUnderflowError to ConnectionError in conn._read_bytes() Both errors are handled the same way when raised and caught, so this makes sense.
Omar Ghishan
2014-01-08 11:30:15 -08:00
354fcdbdd9
Merge pull request #66 from jcrobak/fix-import-collision
David Arthur
2014-01-08 06:33:48 -08:00
9cbe45d235
Some cleanup and easier to read test fixture output
Omar Ghishan
2014-01-07 17:54:05 -08:00
f333e9154d
Skip snappy/gzip tests if they're not available
Omar Ghishan
2014-01-07 17:46:01 -08:00