Skip to content

Commit 3861e16

Browse files
carsonipjeffwidman
authored andcommitted
Fix typos
1 parent 736218d commit 3861e16

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

benchmarks/consumer_performance.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def get_args_parser():
157157
default=100)
158158
parser.add_argument(
159159
'--consumer-config', type=str, nargs='+', default=(),
160-
help='kafka consumer related configuaration properties like '
160+
help='kafka consumer related configuration properties like '
161161
'bootstrap_servers,client_id etc..')
162162
parser.add_argument(
163163
'--fixture-compression', type=str,

kafka/admin/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class KafkaAdminClient(object):
103103
should verify that the certificate matches the broker's hostname.
104104
Default: True.
105105
ssl_cafile (str): Optional filename of CA file to use in certificate
106-
veriication. Default: None.
106+
verification. Default: None.
107107
ssl_certfile (str): Optional filename of file in PEM format containing
108108
the client certificate, as well as any CA certificates needed to
109109
establish the certificate's authenticity. Default: None.

kafka/client_async.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class KafkaClient(object):
111111
should verify that the certificate matches the broker's hostname.
112112
Default: True.
113113
ssl_cafile (str): Optional filename of CA file to use in certificate
114-
veriication. Default: None.
114+
verification. Default: None.
115115
ssl_certfile (str): Optional filename of file in PEM format containing
116116
the client certificate, as well as any CA certificates needed to
117117
establish the certificate's authenticity. Default: None.

kafka/conn.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def __init__(self, host, port, afi, **configs):
251251
self.config['send_buffer_bytes']))
252252

253253
assert self.config['security_protocol'] in self.SECURITY_PROTOCOLS, (
254-
'security_protcol must be in ' + ', '.join(self.SECURITY_PROTOCOLS))
254+
'security_protocol must be in ' + ', '.join(self.SECURITY_PROTOCOLS))
255255

256256
if self.config['security_protocol'] in ('SSL', 'SASL_SSL'):
257257
assert ssl_available, "Python wasn't built with SSL support"
@@ -1196,7 +1196,7 @@ def check_version(self, timeout=2, strict=False, topics=[]):
11961196
# by looking at ApiVersionResponse
11971197
api_versions = self._handle_api_version_response(f.value)
11981198
version = self._infer_broker_version_from_api_versions(api_versions)
1199-
log.info('Broker version identifed as %s', '.'.join(map(str, version)))
1199+
log.info('Broker version identified as %s', '.'.join(map(str, version)))
12001200
log.info('Set configuration api_version=%s to skip auto'
12011201
' check_version requests on startup', version)
12021202
break

kafka/consumer/fetcher.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def _retrieve_offsets(self, timestamps, timeout_ms=float("inf")):
255255
Arguments:
256256
timestamps: {TopicPartition: int} dict with timestamps to fetch
257257
offsets by. -1 for the latest available, -2 for the earliest
258-
available. Otherwise timestamp is treated as epoch miliseconds.
258+
available. Otherwise timestamp is treated as epoch milliseconds.
259259
260260
Returns:
261261
{TopicPartition: (int, int)}: Mapping of partition to
@@ -291,7 +291,7 @@ def _retrieve_offsets(self, timestamps, timeout_ms=float("inf")):
291291
self._client.poll(future=refresh_future, timeout_ms=remaining_ms)
292292

293293
# Issue #1780
294-
# Recheck partition existance after after a successful metadata refresh
294+
# Recheck partition existence after after a successful metadata refresh
295295
if refresh_future.succeeded() and isinstance(future.exception, Errors.StaleMetadata):
296296
log.debug("Stale metadata was raised, and we now have an updated metadata. Rechecking partition existance")
297297
unknown_partition = future.exception.args[0] # TopicPartition from StaleMetadata

kafka/coordinator/consumer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __init__(self, client, subscription, metrics, **configs):
6969
adjusted even lower to control the expected time for normal
7070
rebalances. Default: 3000
7171
session_timeout_ms (int): The timeout used to detect failures when
72-
using Kafka's group managementment facilities. Default: 30000
72+
using Kafka's group management facilities. Default: 30000
7373
retry_backoff_ms (int): Milliseconds to backoff when retrying on
7474
errors. Default: 100.
7575
exclude_internal_topics (bool): Whether records from internal topics

kafka/producer/kafka.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class KafkaProducer(object):
155155
'linger' for the specified time waiting for more records to show
156156
up. This setting defaults to 0 (i.e. no delay). Setting linger_ms=5
157157
would have the effect of reducing the number of requests sent but
158-
would add up to 5ms of latency to records sent in the absense of
158+
would add up to 5ms of latency to records sent in the absence of
159159
load. Default: 0.
160160
partitioner (callable): Callable used to determine which partition
161161
each message is assigned to. Called (after key serialization):

kafka/record/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def decode_varint(buffer, pos=0):
9191
on how those can be produced.
9292
9393
Arguments:
94-
buffer (bytearry): buffer to read from.
94+
buffer (bytearray): buffer to read from.
9595
pos (int): optional position to read from
9696
9797
Returns:

test/record/test_records.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def test_memory_records_builder(magic, compression_type):
195195
size_before_close = builder.size_in_bytes()
196196
assert size_before_close == sum(msg_sizes) + base_size
197197

198-
# Size should remain the same after closing. No traling bytes
198+
# Size should remain the same after closing. No trailing bytes
199199
builder.close()
200200
assert builder.compression_rate() > 0
201201
expected_size = size_before_close * builder.compression_rate()

0 commit comments

Comments
 (0)