|
7 | 7 | from aiokafka import __version__ |
8 | 8 | from aiokafka.conn import collect_hosts, create_conn, CloseReason |
9 | 9 | from aiokafka.cluster import ClusterMetadata |
10 | | -from aiokafka.protocol.admin import DescribeAclsRequest_v2 |
| 10 | +from aiokafka.protocol.admin import ( |
| 11 | + DescribeAclsRequest_v2, DescribeClientQuotasRequest_v0 |
| 12 | +) |
11 | 13 | from aiokafka.protocol.commit import OffsetFetchRequest |
12 | 14 | from aiokafka.protocol.coordination import FindCoordinatorRequest |
13 | 15 | from aiokafka.protocol.fetch import FetchRequest |
@@ -421,7 +423,7 @@ async def _get_conn( |
421 | 423 | # XXX: earlier we only did an assert here, but it seems it's |
422 | 424 | # possible to get a leader that is for some reason not in |
423 | 425 | # metadata. |
424 | | - # I think requerying metadata should solve this problem |
| 426 | + # I think requiring metadata should solve this problem |
425 | 427 | if broker is None: |
426 | 428 | raise StaleMetadata( |
427 | 429 | 'Broker id %s not in current metadata' % node_id) |
@@ -581,8 +583,7 @@ def _check_api_version_response(self, response): |
581 | 583 | # in descending order. As soon as we find one that works, return it |
582 | 584 | test_cases = [ |
583 | 585 | # format (<broker version>, <needed struct>) |
584 | | - # TODO Requires unreleased version of python-kafka |
585 | | - # ((2, 6, 0), DescribeClientQuotasRequest[0]), |
| 586 | + ((2, 6, 0), DescribeClientQuotasRequest_v0), |
586 | 587 | ((2, 5, 0), DescribeAclsRequest_v2), |
587 | 588 | ((2, 4, 0), ProduceRequest[8]), |
588 | 589 | ((2, 3, 0), FetchRequest[11]), |
|
0 commit comments