kafka-python 2.2.14__py2.py3-none-any.whl → 2.2.16__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kafka/conn.py +7 -0
- kafka/consumer/group.py +2 -2
- kafka/producer/record_accumulator.py +2 -2
- kafka/producer/transaction_manager.py +2 -2
- kafka/version.py +1 -1
- {kafka_python-2.2.14.dist-info → kafka_python-2.2.16.dist-info}/METADATA +1 -1
- {kafka_python-2.2.14.dist-info → kafka_python-2.2.16.dist-info}/RECORD +9 -9
- {kafka_python-2.2.14.dist-info → kafka_python-2.2.16.dist-info}/WHEEL +0 -0
- {kafka_python-2.2.14.dist-info → kafka_python-2.2.16.dist-info}/top_level.txt +0 -0
kafka/conn.py
CHANGED
|
@@ -1075,6 +1075,13 @@ class BrokerConnection(object):
|
|
|
1075
1075
|
total_bytes = self._send_bytes(self._send_buffer)
|
|
1076
1076
|
self._send_buffer = self._send_buffer[total_bytes:]
|
|
1077
1077
|
|
|
1078
|
+
# If all data was sent, we need to get the new data from the protocol now, otherwise
|
|
1079
|
+
# this function would return True, indicating that there are no more pending
|
|
1080
|
+
# requests. This could cause the calling thread to wait indefinitely as it won't
|
|
1081
|
+
# know that there is still buffered data to send.
|
|
1082
|
+
if not self._send_buffer:
|
|
1083
|
+
self._send_buffer = self._protocol.send_bytes()
|
|
1084
|
+
|
|
1078
1085
|
if self._sensors:
|
|
1079
1086
|
self._sensors.bytes_sent.record(total_bytes)
|
|
1080
1087
|
# Return True iff send buffer is empty
|
kafka/consumer/group.py
CHANGED
|
@@ -123,7 +123,7 @@ class KafkaConsumer(six.Iterator):
|
|
|
123
123
|
be disabled in cases seeking extreme performance. Default: True
|
|
124
124
|
isolation_level (str): Configure KIP-98 transactional consumer by
|
|
125
125
|
setting to 'read_committed'. This will cause the consumer to
|
|
126
|
-
skip records from aborted
|
|
126
|
+
skip records from aborted transactions. Default: 'read_uncommitted'
|
|
127
127
|
allow_auto_create_topics (bool): Enable/disable auto topic creation
|
|
128
128
|
on metadata request. Only available with api_version >= (0, 11).
|
|
129
129
|
Default: True
|
|
@@ -757,7 +757,7 @@ class KafkaConsumer(six.Iterator):
|
|
|
757
757
|
# batch update fetch positions for any partitions without a valid position
|
|
758
758
|
if self._update_fetch_positions(timeout_ms=timer.timeout_ms):
|
|
759
759
|
position = self._subscription.assignment[partition].position
|
|
760
|
-
|
|
760
|
+
if timer.expired:
|
|
761
761
|
return None
|
|
762
762
|
else:
|
|
763
763
|
return position.offset
|
|
@@ -430,7 +430,7 @@ class RecordAccumulator(object):
|
|
|
430
430
|
expired = bool(waited_time >= time_to_wait)
|
|
431
431
|
|
|
432
432
|
sendable = (full or expired or self._closed or
|
|
433
|
-
self.
|
|
433
|
+
self.flush_in_progress())
|
|
434
434
|
|
|
435
435
|
if sendable and not backing_off:
|
|
436
436
|
ready_nodes.add(leader)
|
|
@@ -563,7 +563,7 @@ class RecordAccumulator(object):
|
|
|
563
563
|
"""Deallocate the record batch."""
|
|
564
564
|
self._incomplete.remove(batch)
|
|
565
565
|
|
|
566
|
-
def
|
|
566
|
+
def flush_in_progress(self):
|
|
567
567
|
"""Are there any threads currently waiting on a flush?"""
|
|
568
568
|
return self._flushes_in_progress.get() > 0
|
|
569
569
|
|
|
@@ -553,11 +553,11 @@ class TxnRequestHandler(object):
|
|
|
553
553
|
return self.transaction_manager.producer_id_and_epoch.epoch
|
|
554
554
|
|
|
555
555
|
def fatal_error(self, exc):
|
|
556
|
-
self.transaction_manager.
|
|
556
|
+
self.transaction_manager.transition_to_fatal_error(exc)
|
|
557
557
|
self._result.done(error=exc)
|
|
558
558
|
|
|
559
559
|
def abortable_error(self, exc):
|
|
560
|
-
self.transaction_manager.
|
|
560
|
+
self.transaction_manager.transition_to_abortable_error(exc)
|
|
561
561
|
self._result.done(error=exc)
|
|
562
562
|
|
|
563
563
|
def fail(self, exc):
|
kafka/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '2.2.
|
|
1
|
+
__version__ = '2.2.16'
|
|
@@ -2,13 +2,13 @@ kafka/__init__.py,sha256=4dvHKZAxmD_4tfJ5wGcRV2X78vPcm8vsUoqceULevjA,1077
|
|
|
2
2
|
kafka/client_async.py,sha256=R8q_rRpG3RrYrRmcZo7XgO2oSdpLJATNcq8w-1vIJ_8,56878
|
|
3
3
|
kafka/cluster.py,sha256=B4tOZYhZaYrcGsyAtdA8yejFm9ue7ElJxn_pd6Xhdfk,16775
|
|
4
4
|
kafka/codec.py,sha256=8NZpnehzNrhSBIjzbPVSvyFbSeLAqEntE7BfVHu-_9I,10036
|
|
5
|
-
kafka/conn.py,sha256=
|
|
5
|
+
kafka/conn.py,sha256=La-xtpbM7k5ocswFJf3gm4fHNWzQV3fCG0YfeKFRYGI,69956
|
|
6
6
|
kafka/errors.py,sha256=qX2Fp0qawU_HBNcZCwB7EDCmx3C2PehrETi6qSEJHmk,33290
|
|
7
7
|
kafka/future.py,sha256=ZQStbfUYIPJRrgMfAWxxjrIRVxsw4WCtSR0J0bkyGno,2847
|
|
8
8
|
kafka/socks5_wrapper.py,sha256=6woOaCTJXJ5e89_zdyW5BjOpyE4rCbYFH-kd-FeuPuk,9827
|
|
9
9
|
kafka/structs.py,sha256=SJGzmLdV21jZyQ7247k0WFy16UiusgTHK3I-e4qzI-E,3058
|
|
10
10
|
kafka/util.py,sha256=WGqI5yT1yWGgHqSuRF9Fi8ejpiB53SurMy7ABkYxJ2g,4584
|
|
11
|
-
kafka/version.py,sha256=
|
|
11
|
+
kafka/version.py,sha256=UTmClSKnv3Rn1Qies89Pt3D8Dmn-myrPMLtPf-wbASY,23
|
|
12
12
|
kafka/admin/__init__.py,sha256=S_XxqyyV480_yXhttK79XZqNAmZyXRjspd3SoqYykE8,720
|
|
13
13
|
kafka/admin/acl_resource.py,sha256=ak_dUsSni4SyP0ORbSKenZpwTy0Ykxq3FSt_9XgLR8k,8265
|
|
14
14
|
kafka/admin/client.py,sha256=94UpHTsgzvhOoB6_1QLeKxvZKlStKfI96xuWyaY9_Sc,78814
|
|
@@ -24,7 +24,7 @@ kafka/benchmarks/record_batch_read.py,sha256=vlFaWU2YWI379n_2M8qieb_S2uHUWKV0Nqu
|
|
|
24
24
|
kafka/benchmarks/varint_speed.py,sha256=s4CuvKgDZL-_zna5E3vM8RgHjhXuW6pcaO1z1WYZ_0Y,12585
|
|
25
25
|
kafka/consumer/__init__.py,sha256=NDdvtyuJgFyQZahqL9i5sYXGP6rOMIXWwHQEaZ1fCcs,122
|
|
26
26
|
kafka/consumer/fetcher.py,sha256=RlQLut54c5nOMl21neTJA2tmdsxIIPIX2Idu5Q-dYKY,69184
|
|
27
|
-
kafka/consumer/group.py,sha256=
|
|
27
|
+
kafka/consumer/group.py,sha256=kGvgqqdV9zrgCXr7jSbTs9sSJACjuAKehuxt0QYRHHU,58943
|
|
28
28
|
kafka/consumer/subscription_state.py,sha256=bK-YTVbOzhy8OB206QAfXVuo7zPA9YqYXnrRRST369c,24289
|
|
29
29
|
kafka/coordinator/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
kafka/coordinator/base.py,sha256=hXfwtDkrHXHiNqjshCOa19js_2Y6ibLsdzDvJKGmcKc,54419
|
|
@@ -68,9 +68,9 @@ kafka/partitioner/default.py,sha256=tW-RC1PWIPRDEbeEAaPTLn-00oiZnXoVouEk9AnYE4w,
|
|
|
68
68
|
kafka/producer/__init__.py,sha256=i3Wxih0NHjmqCkRNE54ial8fBp9siqabUE6ZGyL6oX8,122
|
|
69
69
|
kafka/producer/future.py,sha256=UC3-g9QlgVFmbitrtMXVpeP0Pbvr7xl2kcw6bAehKG8,2983
|
|
70
70
|
kafka/producer/kafka.py,sha256=oGO-UxoVZEFdBLOQ7zEqeDJWXMxKyUdNV-pCRU3jZmg,53302
|
|
71
|
-
kafka/producer/record_accumulator.py,sha256=
|
|
71
|
+
kafka/producer/record_accumulator.py,sha256=xNkHOCmganxDfa3W_Y3iBLT4RaAOZi0Lix-mUzsp2aQ,28170
|
|
72
72
|
kafka/producer/sender.py,sha256=8-TLTw6vQO7AheWSDPI33cQdWMyTDxi1k-pkXuUb9k0,37789
|
|
73
|
-
kafka/producer/transaction_manager.py,sha256=
|
|
73
|
+
kafka/producer/transaction_manager.py,sha256=q3e9Lc9o-ofWvjT9FbHdTQH08XQBeRtoQEcQHGcnp7g,41535
|
|
74
74
|
kafka/protocol/__init__.py,sha256=T1RBBlTH3zze0Cr1RqemPD4Z1b3IUDRmLOBfZTsPgLs,1184
|
|
75
75
|
kafka/protocol/abstract.py,sha256=uOnuf6D8OTkL31Tp2QXG3VlzDPHVELGzM_bpSVa-_iw,424
|
|
76
76
|
kafka/protocol/add_offsets_to_txn.py,sha256=Hya7vg6yqsV9XGLKWi8rES_VuN47-H4fdycg6mx8GLY,1486
|
|
@@ -120,7 +120,7 @@ kafka/vendor/enum34.py,sha256=-u-lxAiJMt6ru4Do7NUDY9OpeWkYJMksb2xengJawFE,31204
|
|
|
120
120
|
kafka/vendor/selectors34.py,sha256=gxejLO4eXf8mRSGXaQiknPig3GdX1rtsZiYOQJVuAy8,20594
|
|
121
121
|
kafka/vendor/six.py,sha256=lLBa9_HrANP5BMZ7twEzg1M3wofwPmXyptuWmHX0brY,34826
|
|
122
122
|
kafka/vendor/socketpair.py,sha256=Fi3PoY1Okkppab720wFk1BhHXyjcw7hi5DwhqrYZH2Y,2737
|
|
123
|
-
kafka_python-2.2.
|
|
124
|
-
kafka_python-2.2.
|
|
125
|
-
kafka_python-2.2.
|
|
126
|
-
kafka_python-2.2.
|
|
123
|
+
kafka_python-2.2.16.dist-info/METADATA,sha256=H-5YJSGk5csYCUOY1A6V8Yxboixmay0cG60di1TsGeU,9952
|
|
124
|
+
kafka_python-2.2.16.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
|
125
|
+
kafka_python-2.2.16.dist-info/top_level.txt,sha256=IivJz7l5WHdLNDT6RIiVAlhjQzYRwGqBBmKHZ7WjPeM,6
|
|
126
|
+
kafka_python-2.2.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|