Skip to content

Merge latest official repo #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 86 commits into from
Nov 6, 2018
Merged

Conversation

AndrewLvov
Copy link

No description provided.

dpkp and others added 30 commits January 31, 2018 11:32
No longer necessary since pytest-catchlog has been merged into pytest's core.
This commit addresses the following warning in pytest output:

  pytest-catchlog plugin has been merged into the core, please remove it from your requirements.

Fixes dpkp#1379
* Use hardware accelerated CRC32C function if available

* Add doc notice of optional `crc32c` package
If a future was passed as the only positional parameter it would
be assigned to the "timeout_ms" parameter erroneously. This mistake
would not raise any exception but would lead to odd behaviour later,
what could make it extremely difficult to troubleshoot.

Adding a type check ensures that an exception is raise earlier to
notify the user about the problem.
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.
Change-Id: I6527da4b70ebec9e08fa50aca9eba717b8361f19
romulorosa and others added 28 commits April 15, 2018 18:30
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.
If a valid broker in the cluster has no partitions, it will return None rather than an empty set.

Similarly updated a few other methods.
* only perform single dns lookup for connect_blocking()
* fix blocking timeout in check_version()
This finishes the split from `kafka.common` to `kafka.errors`/`kafka.structs`.
This was added in dpkp#1068 but never documented.
Fix dpkp#1497
This solves a warning in linters like PyCharm, which warns that a line like:
from kafka import ConsumerRebalanceListener
is actually accessing a protected member of a class or module. Adding it to __all__ should solve this.
@AndrewLvov AndrewLvov merged commit b3db027 into master Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.