Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove SimpleClient, Producer, Consumer, Unittest (#1196) | Jeff Widman | 2019-10-11 | 1 | -240/+0 |
| | | | | | | | | | | | | | | | | | | In the 2.0 release, we're removing: * `SimpleClient` * `SimpleConsumer` * `SimpleProducer` * Old partitioners used by `SimpleProducer`; these are superceded by the `DefaultPartitioner` These have been deprecated for several years in favor of `KafkaClient` / `KafkaConsumer` / `KafkaProducer`. Since 2.0 allows breaking changes, we are removing the deprecated classes. Additionally, since the only usage of `unittest` was in tests for these old Simple* clients, this also drops `unittest` from the library. All tests now run under `pytest`. | ||||
* | Cleanup handling of KAFKA_VERSION env var in tests (#1887) | Jeff Widman | 2019-08-22 | 1 | -2/+2 |
| | | | | | | | | | | | | | Now that we are using `pytest`, there is no need for a custom decorator because we can use `pytest.mark.skipif()`. This makes the code significantly simpler. In particular, dropping the custom `@kafka_versions()` decorator is necessary because it uses `func.wraps()` which doesn't play nice with `pytest` fixtures: - https://github.com/pytest-dev/pytest/issues/677 - https://stackoverflow.com/a/19614807/770425 So this is a pre-requisite to migrating some of those tests to using pytest fixtures. | ||||
* | Cleanup fixture imports | Jeff Widman | 2018-10-27 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | `random_string` now comes from `test.fixtures` and was being transparently imported via `test.testutil` so this bypasses the pointless indirect import. Similarly, `kafka_version` was transparently imported by `test.testutil` from `test.fixtures`. Also removed `random_port()` in `test.testutil` because its unused as its been replaced by the one in `test.fixtures`. This is part of the pytest migration that was started back in a1869c4be5f47b4f6433610249aaf29af4ec95e5. | ||||
* | Stop shadowing `ConnectionError` | Jeff Widman | 2018-05-23 | 1 | -3/+3 |
| | | | | | | | | | | In Python3, `ConnectionError` is a native exception. So rename our custom one to `KafkaConnectionError` to prevent accidentally shadowing the native one. Note that there are still valid uses of `ConnectionError` in this code. They already expect a native Python3 `ConnectionError`, and also already handle the Python2 compatibility issues. | ||||
* | Change SimpleProducer to use async_send (async is reserved in py37) (#1454) | Dana Powers | 2018-03-23 | 1 | -4/+4 |
| | |||||
* | Introduce new fixtures to prepare for migration to pytest. | Andre Araujo | 2018-02-21 | 1 | -2/+1 |
| | | | | | | | This commits adds new pytest fixtures in prepation for the migration of unittest.TestCases to pytest test cases. The handling of temporary dir creation was also changed so that we can use the pytest tmpdir fixture after the migration. | ||||
* | Minor Exception cleanup | Jeff Widman | 2017-12-12 | 1 | -1/+1 |
| | |||||
* | Fix typos | Jeff Widman | 2016-11-14 | 1 | -1/+1 |
| | |||||
* | Speedup some failover tests w/ shorter SimpleClient timeout | Dana Powers | 2016-04-08 | 1 | -1/+1 |
| | |||||
* | Catch more producer exceptions in failover tests | Dana Powers | 2016-04-06 | 1 | -3/+6 |
| | |||||
* | Update imports from kafka.common -> kafka.errors / kafka.structs | Dana Powers | 2016-04-05 | 1 | -3/+3 |
| | |||||
* | Support setting kafka instance port explicitly in fixture | Dana Powers | 2016-02-15 | 1 | -2/+5 |
| | |||||
* | Merge branch '0.9' | Dana Powers | 2016-01-07 | 1 | -8/+9 |
|\ | | | | | | | | | | | | | | | Conflicts: kafka/codec.py kafka/version.py test/test_producer.py test/test_producer_integration.py | ||||
| * | Fix KafkaClient->SimpleClient references0.9 | Dana Powers | 2016-01-07 | 1 | -3/+3 |
| | | |||||
| * | Use 2-second KafkaClient timeout in failover tests | Dana Powers | 2016-01-03 | 1 | -1/+1 |
| | | |||||
| * | Catch and retry on RequestTimedOutError in producer failover test | Dana Powers | 2015-12-29 | 1 | -2/+4 |
| | | |||||
| * | Rename TopicAndPartition -> TopicPartition | Dana Powers | 2015-12-28 | 1 | -2/+2 |
| | | |||||
| * | Drop kafka_bytestring | Dana Powers | 2015-12-10 | 1 | -3/+2 |
| | | |||||
* | | Retry on FailedPayloadsError from consumer.pending() in failover tests | Dana Powers | 2015-12-18 | 1 | -4/+5 |
| | | |||||
* | | Refactor kafka_versions to support arbitrary operators (> >= < <= ! =)kafka_version_tests | Dana Powers | 2015-12-10 | 1 | -8/+2 |
|/ | |||||
* | Use at_least=True when counting messages in leader failover tests | Dana Powers | 2015-06-10 | 1 | -1/+4 |
| | |||||
* | Retry failed messages in failover integration tests; use module logger | Dana Powers | 2015-06-10 | 1 | -12/+17 |
| | |||||
* | Test failover integration with 3-brokers / replicas / partitions | Dana Powers | 2015-06-09 | 1 | -3/+3 |
| | |||||
* | Produce messages to both partitions in async producer leader switch test | Dana Powers | 2015-06-08 | 1 | -1/+9 |
| | |||||
* | Import style nits in integration tests | Dana Powers | 2015-06-08 | 1 | -2/+1 |
| | |||||
* | try to fix uncaught FailedPayloadsError | reAsOn2010 | 2015-06-09 | 1 | -0/+8 |
| | |||||
* | Encode random_message strings to bytes in test_failover_integration | Dana Powers | 2015-06-06 | 1 | -1/+2 |
| | |||||
* | Sleep for 500ms before retrying consumer pending call in tests | Dana Powers | 2015-06-06 | 1 | -0/+1 |
| | |||||
* | Include message number in sent message value in _send_random_message | Dana Powers | 2015-06-06 | 1 | -1/+1 |
| | |||||
* | add option to check for at-least-once message delivery in failover tests | Dana Powers | 2015-06-06 | 1 | -6/+12 |
| | |||||
* | Reenable test_switch_leader_async | Dana Powers | 2015-06-06 | 1 | -7/+13 |
| | |||||
* | random_string helper should return str not bytes | Dana Powers | 2015-06-06 | 1 | -7/+7 |
| | |||||
* | Make external API consistently support python3 strings for topic. | Space | 2015-04-03 | 1 | -2/+3 |
| | |||||
* | Fetch previously committed offsets in base consumer class so long as | Dana Powers | 2015-03-30 | 1 | -1/+1 |
| | | | | | | | | a group is configured (but document that group must be None for old servers). This fixes multiprocessor consumer issue that prevented access to commit offsets if auto_commit is disabled. Also refactor fetch_last_known_offsets based on KafkaConsumer While still setting unknown offsets to 0 | ||||
* | Add more comments to test_switch_leader regarding req_acks policy | Dana Powers | 2015-02-09 | 1 | -3/+10 |
| | |||||
* | Write a test for issue 313 - keyed producer failover | Dana Powers | 2015-02-09 | 1 | -0/+40 |
| | |||||
* | use setUp / tearDown to rebuild fixtures for each test in ↵ | Dana Powers | 2015-02-09 | 1 | -12/+12 |
| | | | | test_failover_integration | ||||
* | Merge conflict w/ assertEqual (assertEquals deprecated) | Dana Powers | 2014-12-15 | 1 | -1/+1 |
| | |||||
* | Separate consumers/producers/partitioners | Dana Powers | 2014-09-10 | 1 | -1/+1 |
| | |||||
* | Merge pull request #227 from wizzat-feature/py3 | Dana Powers | 2014-09-07 | 1 | -3/+4 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 more tests, only multiprocessing consumer ones remaining | Bruno Renié | 2014-09-03 | 1 | -1/+1 |
| | | |||||
| * | Make all unit tests pass on py3.3/3.4 | Bruno Renié | 2014-09-03 | 1 | -2/+2 |
| | | |||||
| * | Use base unittest or unittest2 depending on python version | Bruno Renié | 2014-09-03 | 1 | -2/+2 |
| | | |||||
* | | Cleanup tests: no more import *; remove unused | Dana Powers | 2014-09-04 | 1 | -7/+4 |
| | | |||||
* | | Another attempt to fix failover test flapping | Dana Powers | 2014-09-04 | 1 | -16/+23 |
| | | |||||
* | | Import cleanups in tests | Dana Powers | 2014-09-04 | 1 | -4/+7 |
|/ | |||||
* | 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) | ||||
* | 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 | ||||
* | Fix Python 2.6 support | Mark Roberts | 2014-04-23 | 1 | -1/+0 |
| |