Skip to content

Commit e4ece37

Browse files
authored
Fix typos in multiple files (apache#19086)
Fix typos in multiple files Reviewers: Andrew Schofield <[email protected]>
1 parent c1fc59f commit e4ece37

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

NOTICE-binary

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ The project maintains the following source code repositories:
349349
Angular JS, v1.6.6
350350
* License MIT (http://www.opensource.org/licenses/mit-license.php)
351351
* Project: http://angularjs.org
352-
* Coyright: (c) 2010-2017 Google, Inc.
352+
* Copyright: (c) 2010-2017 Google, Inc.
353353

354354
aopalliance Version 1
355355
* License: all the source code provided by AOP Alliance is Public Domain.

clients/src/main/java/org/apache/kafka/common/KafkaFuture.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public static KafkaFuture<Void> allOf(KafkaFuture<?>... futures) {
135135
* The action may be invoked by the thread that calls {@code whenComplete} or it may be invoked by the thread that
136136
* completes the future.
137137
*
138-
* @param action the action to preform
138+
* @param action the action to perform
139139
* @return the new future
140140
*/
141141
public abstract KafkaFuture<T> whenComplete(BiConsumer<? super T, ? super Throwable> action);

clients/src/test/java/org/apache/kafka/clients/consumer/KafkaConsumerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public void testShouldOnlyCallMetricReporterMetricChangeOnceWithExistingConsumer
304304

305305
KafkaMetric existingMetric = (KafkaMetric) consumer.metrics().entrySet().iterator().next().getValue();
306306
consumer.registerMetricForSubscription(existingMetric);
307-
// This test would fail without the check as the exising metric is registered in the consumer on startup
307+
// This test would fail without the check as the existing metric is registered in the consumer on startup
308308
Mockito.verify(clientTelemetryReporter, atMostOnce()).metricChange(existingMetric);
309309
}
310310
}

clients/src/test/java/org/apache/kafka/clients/producer/KafkaProducerTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -2728,7 +2728,7 @@ public void testShouldOnlyCallMetricReporterMetricChangeOnceWithExistingProducer
27282728
props, new StringSerializer(), new StringSerializer())) {
27292729
KafkaMetric existingMetric = (KafkaMetric) producer.metrics().entrySet().iterator().next().getValue();
27302730
producer.registerMetricForSubscription(existingMetric);
2731-
// This test would fail without the check as the exising metric is registered in the producer on startup
2731+
// This test would fail without the check as the existing metric is registered in the producer on startup
27322732
Mockito.verify(clientTelemetryReporter, atMostOnce()).metricChange(existingMetric);
27332733
}
27342734
}
@@ -2747,7 +2747,7 @@ public void testShouldNotCallMetricReporterMetricRemovalWithExistingProducerMetr
27472747
props, new StringSerializer(), new StringSerializer())) {
27482748
KafkaMetric existingMetric = (KafkaMetric) producer.metrics().entrySet().iterator().next().getValue();
27492749
producer.unregisterMetricFromSubscription(existingMetric);
2750-
// This test would fail without the check as the exising metric is registered in the consumer on startup
2750+
// This test would fail without the check as the existing metric is registered in the consumer on startup
27512751
Mockito.verify(clientTelemetryReporter, never()).metricRemoval(existingMetric);
27522752
}
27532753
}

connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ private void processLoggerLevelRecord(String namespace, SchemaAndValue value) {
12581258
} else {
12591259
// TRACE level since there may be many of these records in the config topic
12601260
log.trace(
1261-
"Ignoring old logging level {} for namespace {} that was writen to the config topic before this worker completed startup",
1261+
"Ignoring old logging level {} for namespace {} that was written to the config topic before this worker completed startup",
12621262
level,
12631263
namespace
12641264
);

connect/runtime/src/test/java/org/apache/kafka/connect/util/clusters/EmbeddedConnect.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ public ConnectorStateInfo restartConnectorAndTasks(String connName, boolean only
495495
Response response = requestPost(restartEndpoint, "", Collections.emptyMap());
496496
try {
497497
if (response.getStatus() < Response.Status.BAD_REQUEST.getStatusCode()) {
498-
//only the 202 stauts returns a body
498+
//only the 202 status returns a body
499499
if (response.getStatus() == Response.Status.ACCEPTED.getStatusCode()) {
500500
return mapper.readerFor(ConnectorStateInfo.class)
501501
.readValue(responseToString(response));

coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntime.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ private class CoordinatorBatch {
493493
final MemoryRecordsBuilder builder;
494494

495495
/**
496-
* The timer used to enfore the append linger time if
496+
* The timer used to enforce the append linger time if
497497
* it is non-zero.
498498
*/
499499
final Optional<TimerTask> lingerTimeoutTask;

core/src/main/scala/kafka/server/FetchSession.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class CachedPartition(var topic: String,
224224
* fields are read or modified. This includes modification of the session partition map.
225225
*
226226
* @param id The unique fetch session ID.
227-
* @param privileged True if this session is privileged. Sessions crated by followers
227+
* @param privileged True if this session is privileged. Sessions created by followers
228228
* are privileged; session created by consumers are not.
229229
* @param partitionMap The CachedPartitionMap.
230230
* @param usesTopicIds True if this session is using topic IDs

core/src/test/java/kafka/server/share/SharePartitionManagerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2734,7 +2734,7 @@ public void testReplicaManagerFetchMultipleSharePartitionsException() {
27342734

27352735
SharePartition sp1 = mock(SharePartition.class);
27362736
// Do not make the share partition acquirable hence it shouldn't be removed from the cache,
2737-
// as it won't be part of replica manger readFromLog request.
2737+
// as it won't be part of replica manager readFromLog request.
27382738
when(sp1.maybeAcquireFetchLock()).thenReturn(false);
27392739
when(sp1.maybeInitialize()).thenReturn(CompletableFuture.completedFuture(null));
27402740

0 commit comments

Comments
 (0)