diff --git a/flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/reader/synchronization/FutureCompletingBlockingQueue.java b/flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/reader/synchronization/FutureCompletingBlockingQueue.java index d023b4985ef6fd..23476fb9da3ae8 100644 --- a/flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/reader/synchronization/FutureCompletingBlockingQueue.java +++ b/flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/reader/synchronization/FutureCompletingBlockingQueue.java @@ -60,10 +60,10 @@ * or results in an empty queue (takes the last element). * *
Note that this model generally assumes that false positives are okay, meaning that the - * availability future completes despite there being no data availabile in the queue. The consumer - * is responsible for polling data and obtaining another future to wait on. This is similar to the - * way that Java's Monitors and Conditions can have the spurious wakeup of the waiting - * threads and commonly need to be used in loop with the waiting condition. + * availability future completes despite there being no data available in the queue. The consumer is + * responsible for polling data and obtaining another future to wait on. This is similar to the way + * that Java's Monitors and Conditions can have the spurious wakeup of the waiting threads + * and commonly need to be used in loop with the waiting condition. * *
It writes data to and manages the different active {@link FileWriterBucket buckes} in the + *
It writes data to and manages the different active {@link FileWriterBucket buckets} in the
* {@link FileSink}.
*
* @param If this is for file system table, the metastore is a empty implemantation. If this is for hive
- * table, the metastore is for connecting to hive metastore.
+ * If this is for file system table, the metastore is an empty implementation. If this is for
+ * hive table, the metastore is for connecting to hive metastore.
*/
@Internal
public class MetastoreCommitPolicy implements PartitionCommitPolicy {
diff --git a/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/PartitionFetcher.java b/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/PartitionFetcher.java
index 323f949f4b2c7b..43f6e6c1c84f0a 100644
--- a/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/PartitionFetcher.java
+++ b/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/PartitionFetcher.java
@@ -67,7 +67,7 @@ interface Context extends Serializable {
* A comparable partition value that can compare order by using its comparator.
*
* @param The type of partition value.
- * @param > extends Serializable {
diff --git a/flink-core-api/src/main/java/org/apache/flink/api/common/state/StateDeclaration.java b/flink-core-api/src/main/java/org/apache/flink/api/common/state/StateDeclaration.java
index b251032cd469c4..c31ada177a5661 100644
--- a/flink-core-api/src/main/java/org/apache/flink/api/common/state/StateDeclaration.java
+++ b/flink-core-api/src/main/java/org/apache/flink/api/common/state/StateDeclaration.java
@@ -59,7 +59,7 @@ enum RedistributionMode {
REDISTRIBUTABLE,
/**
- * States are guranteed to be identical in different partitions, thus redistribution is not
+ * States are guaranteed to be identical in different partitions, thus redistribution is not
* a problem.
*/
IDENTICAL
diff --git a/flink-core/src/main/java/org/apache/flink/api/common/io/FileOutputFormat.java b/flink-core/src/main/java/org/apache/flink/api/common/io/FileOutputFormat.java
index 1ca1c960359cc7..b25c1f028cb819 100644
--- a/flink-core/src/main/java/org/apache/flink/api/common/io/FileOutputFormat.java
+++ b/flink-core/src/main/java/org/apache/flink/api/common/io/FileOutputFormat.java
@@ -106,7 +106,7 @@ public static void initDefaultsFromConfiguration(Configuration configuration) {
protected transient FSDataOutputStream stream;
/**
- * The path that is actually written to (may a a file in a the directory defined by {@code
+ * The path that is actually written to (may be a file in the directory defined by {@code
* outputFilePath} )
*/
private transient Path actualFilePath;
diff --git a/flink-core/src/main/java/org/apache/flink/api/common/io/SinkUtils.java b/flink-core/src/main/java/org/apache/flink/api/common/io/SinkUtils.java
index 648a4ff6280b58..3fdaf94389e3f1 100644
--- a/flink-core/src/main/java/org/apache/flink/api/common/io/SinkUtils.java
+++ b/flink-core/src/main/java/org/apache/flink/api/common/io/SinkUtils.java
@@ -33,7 +33,7 @@ public class SinkUtils implements Serializable {
/**
* Acquire permits on the given semaphore within a given allowed timeout and deal with errors.
*
- * @param permits the mumber of permits to acquire.
+ * @param permits the number of permits to acquire.
* @param maxConcurrentRequests the maximum number of permits the semaphore was initialized
* with.
* @param maxConcurrentRequestsTimeout the timeout to acquire the permits.
diff --git a/flink-core/src/main/java/org/apache/flink/api/common/operators/MailboxExecutor.java b/flink-core/src/main/java/org/apache/flink/api/common/operators/MailboxExecutor.java
index 8a706b8a7b7dd3..9b93b0512172cc 100644
--- a/flink-core/src/main/java/org/apache/flink/api/common/operators/MailboxExecutor.java
+++ b/flink-core/src/main/java/org/apache/flink/api/common/operators/MailboxExecutor.java
@@ -342,7 +342,7 @@ void execute(
/**
* Return if operator/function should interrupt a longer computation and return from the
- * currently processed elemenent/watermark, for example in order to let Flink perform a
+ * currently processed element/watermark, for example in order to let Flink perform a
* checkpoint.
*
* @return whether operator/function should interrupt its computation.
diff --git a/flink-core/src/main/java/org/apache/flink/api/common/typeutils/TypeComparator.java b/flink-core/src/main/java/org/apache/flink/api/common/typeutils/TypeComparator.java
index 77b893549cbfa1..165757c28f9265 100644
--- a/flink-core/src/main/java/org/apache/flink/api/common/typeutils/TypeComparator.java
+++ b/flink-core/src/main/java/org/apache/flink/api/common/typeutils/TypeComparator.java
@@ -154,7 +154,7 @@ public boolean supportsCompareAgainstReference() {
*
* @param first The first record.
* @param second The second record.
- * @return An integer defining the oder among the objects in the same way as {@link
+ * @return An integer defining the order among the objects in the same way as {@link
* java.util.Comparator#compare(Object, Object)}.
* @see java.util.Comparator#compare(Object, Object)
*/
@@ -169,7 +169,7 @@ public boolean supportsCompareAgainstReference() {
*
* @param firstSource The input view containing the first record.
* @param secondSource The input view containing the second record.
- * @return An integer defining the oder among the objects in the same way as {@link
+ * @return An integer defining the order among the objects in the same way as {@link
* java.util.Comparator#compare(Object, Object)}.
* @throws IOException Thrown, if any of the input views raised an exception when reading the
* records.
diff --git a/flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/RowSerializer.java b/flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/RowSerializer.java
index cef69e27ed2317..db4d5898cf38bb 100644
--- a/flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/RowSerializer.java
+++ b/flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/RowSerializer.java
@@ -467,7 +467,7 @@ private static RowKind readKindFromMask(boolean[] mask) {
}
// --------------------------------------------------------------------------------------------
- // Serializer configuration snapshoting & compatibility
+ // Serializer configuration snapshotting & compatibility
// --------------------------------------------------------------------------------------------
@Override
diff --git a/flink-core/src/main/java/org/apache/flink/configuration/GlobalConfiguration.java b/flink-core/src/main/java/org/apache/flink/configuration/GlobalConfiguration.java
index 878f7304a3ca1c..b714a5115c1993 100644
--- a/flink-core/src/main/java/org/apache/flink/configuration/GlobalConfiguration.java
+++ b/flink-core/src/main/java/org/apache/flink/configuration/GlobalConfiguration.java
@@ -180,7 +180,7 @@ private static void logConfiguration(
/**
* Flattens a nested configuration map to be only one level deep.
*
- * Nested keys are concatinated using the {@code KEY_SEPARATOR} character. So that:
+ * Nested keys are concatenated using the {@code KEY_SEPARATOR} character. So that:
*
* All input elements to the operator arre simply passed through a user-provided map function and
+ * All input elements to the operator are simply passed through a user-provided map function and
* emitted.
*/
public class ArtificalOperatorStateMapper This class is NOT thread-safe. Concurrent writes tho this stream result in corrupt or lost
+ * This class is NOT thread-safe. Concurrent writes to this stream result in corrupt or lost
* data.
*
* The {@link #close()} method may be called concurrently when cancelling / shutting down. It
diff --git a/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableFsDataOutputStream.java b/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableFsDataOutputStream.java
index e27fc52689ea3c..b057958821afc3 100644
--- a/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableFsDataOutputStream.java
+++ b/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableFsDataOutputStream.java
@@ -42,7 +42,7 @@
/**
* A RecoverableFsDataOutputStream to S3 that is based on a recoverable multipart upload.
*
- * This class is NOT thread-safe. Concurrent writes tho this stream result in corrupt or lost
+ * This class is NOT thread-safe. Concurrent writes to this stream result in corrupt or lost
* data.
*
* The {@link #close()} method may be called concurrently when cancelling / shutting down. It
diff --git a/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableMultipartUploadFactory.java b/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableMultipartUploadFactory.java
index 368576b4b8a61b..5bc2f1d7e83a91 100644
--- a/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableMultipartUploadFactory.java
+++ b/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3RecoverableMultipartUploadFactory.java
@@ -33,7 +33,7 @@
import java.util.Optional;
import java.util.concurrent.Executor;
-/** A factory for creating or recovering {@link RecoverableMultiPartUpload mulitpart uploads}. */
+/** A factory for creating or recovering {@link RecoverableMultiPartUpload multipart uploads}. */
@Internal
final class S3RecoverableMultipartUploadFactory {
diff --git a/flink-formats/flink-avro/pom.xml b/flink-formats/flink-avro/pom.xml
index 635bd7356520a4..88f86ab030acc6 100644
--- a/flink-formats/flink-avro/pom.xml
+++ b/flink-formats/flink-avro/pom.xml
@@ -208,7 +208,7 @@ under the License.
-
In {@link CsvSchema}, there are four types (string, number, boolean, and array). In order to
* satisfy various Flink types, this class sorts out instances of {@link TypeInformation} and {@link
diff --git a/flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/pattern/Quantifier.java b/flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/pattern/Quantifier.java
index 721b8a40337902..4c442d4ccd2d99 100644
--- a/flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/pattern/Quantifier.java
+++ b/flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/pattern/Quantifier.java
@@ -37,7 +37,7 @@
*
*
* Each {@link Pattern} can be optional and have a {@link ConsumingStrategy}. Looping and Times
- * also hava an additional inner consuming strategy that is applied between accepted events in the
+ * also have an additional inner consuming strategy that is applied between accepted events in the
* pattern.
*/
public class Quantifier {
diff --git a/flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/SavepointWriter.java b/flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/SavepointWriter.java
index c6d477b42dc402..d67d11f39bda78 100644
--- a/flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/SavepointWriter.java
+++ b/flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/SavepointWriter.java
@@ -56,7 +56,7 @@
/**
* A {@code SavepointWriter} can create new savepoints from bounded data streams. This can allow for
- * boostrapping state for new applications or modifying the savepoints of existing jobs.
+ * bootstrapping state for new applications or modifying the savepoints of existing jobs.
*/
@PublicEvolving
public class SavepointWriter {
diff --git a/flink-python/docs/reference/pyflink.datastream/state.rst b/flink-python/docs/reference/pyflink.datastream/state.rst
index c43ce740e20c13..e302b7709c76b5 100644
--- a/flink-python/docs/reference/pyflink.datastream/state.rst
+++ b/flink-python/docs/reference/pyflink.datastream/state.rst
@@ -129,7 +129,7 @@ etc).
The :class:`EmbeddedRocksDBStateBackend` stores working state in an embedded
`RocksDB Under these directories on the TaskManager, ForSt stores some metadata files. These
- * directories do not need to be persistent, they can be ephermeral, meaning that they are lost
+ * directories do not need to be persistent, they can be ephemeral, meaning that they are lost
* on a machine failure, because state in ForSt is persisted in checkpoints.
*
* If nothing is configured, these directories default to the TaskManager's local temporary
diff --git a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/restore/ForStIncrementalRestoreOperation.java b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/restore/ForStIncrementalRestoreOperation.java
index a634c36d5a4972..7e008171417749 100644
--- a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/restore/ForStIncrementalRestoreOperation.java
+++ b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/restore/ForStIncrementalRestoreOperation.java
@@ -691,7 +691,7 @@ public void mergeStateHandlesWithClipAndIngest(
notImportableHandles);
if (exportedColumnFamilyMetaData.isEmpty()) {
- // Nothing coule be exported, so we fall back to
+ // Nothing could be exported, so we fall back to
// #mergeStateHandlesWithCopyFromTemporaryInstance
int bestStateHandleForInit =
findTheBestStateHandleForInitial(
diff --git a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/sync/ForStSyncKeyedStateBackend.java b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/sync/ForStSyncKeyedStateBackend.java
index 48e4ec447d1c7f..34e9d773c9f6b3 100644
--- a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/sync/ForStSyncKeyedStateBackend.java
+++ b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/sync/ForStSyncKeyedStateBackend.java
@@ -557,7 +557,7 @@ public void dispose() {
IOUtils.closeQuietly(writeBatchWrapper);
// Metric collection occurs on a background thread. When this method returns
- // it is guaranteed that thr ForSt reference has been invalidated
+ // it is guaranteed that the ForSt reference has been invalidated
// and no more metric collection will be attempted against the database.
if (nativeMetricMonitor != null) {
nativeMetricMonitor.close();
diff --git a/flink-state-backends/flink-statebackend-heap-spillable/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteSkipListStateMap.java b/flink-state-backends/flink-statebackend-heap-spillable/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteSkipListStateMap.java
index 318d205a50f722..8ca11dbe1542d1 100644
--- a/flink-state-backends/flink-statebackend-heap-spillable/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteSkipListStateMap.java
+++ b/flink-state-backends/flink-statebackend-heap-spillable/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteSkipListStateMap.java
@@ -690,7 +690,7 @@ private long doPhysicalRemoveAndGetValue(long node, long prevNode, long nextNode
}
/**
- * Physically delte the meta of the node, including the node level index, the node key, and
+ * Physically delete the meta of the node, including the node level index, the node key, and
* reduce the total size of the skip list.
*
* @param node node to remove.
diff --git a/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/EmbeddedRocksDBStateBackend.java b/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/EmbeddedRocksDBStateBackend.java
index 386b845ee7c757..0d695a8dc6398e 100644
--- a/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/EmbeddedRocksDBStateBackend.java
+++ b/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/EmbeddedRocksDBStateBackend.java
@@ -696,7 +696,7 @@ public void setDbStoragePaths(String... paths) {
* Gets the configured local DB storage paths, or null, if none were configured.
*
* Under these directories on the TaskManager, RocksDB stores its SST files and metadata
- * files. These directories do not need to be persistent, they can be ephermeral, meaning that
+ * files. These directories do not need to be persistent, they can be ephemeral, meaning that
* they are lost on a machine failure, because state in RocksDB is persisted in checkpoints.
*
* If nothing is configured, these directories default to the TaskManager's local temporary
diff --git a/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBIncrementalCheckpointUtils.java b/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBIncrementalCheckpointUtils.java
index 014ef9ef05025c..aca8ce013ab289 100644
--- a/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBIncrementalCheckpointUtils.java
+++ b/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBIncrementalCheckpointUtils.java
@@ -504,7 +504,7 @@ public static On the first arriving element a configurable processing-time timeout will be set. Using {@link
* #of(AsyncTrigger, Duration, boolean, boolean)}, you can also re-new the timer for each arriving
* element by specifying {@code resetTimerOnNewRecord} and you can specify whether {@link
- * AsyncTrigger#clear(Window, AsyncTrigger.TriggerContext)} should be called on timout via {@code
+ * AsyncTrigger#clear(Window, AsyncTrigger.TriggerContext)} should be called on timeout via {@code
* shouldClearOnTimeout}.
*
* @param On the first arriving element a configurable processing-time timeout will be set. Using {@link
* #of(Trigger, Duration, boolean, boolean)}, you can also re-new the timer for each arriving
* element by specifying {@code resetTimerOnNewRecord} and you can specify whether {@link
- * Trigger#clear(Window, TriggerContext)} should be called on timout via {@code
+ * Trigger#clear(Window, TriggerContext)} should be called on timeout via {@code
* shouldClearOnTimeout}.
*
* @param
* keyA:
diff --git a/flink-end-to-end-tests/flink-datastream-allround-test/src/main/java/org/apache/flink/streaming/tests/artificialstate/ArtificalOperatorStateMapper.java b/flink-end-to-end-tests/flink-datastream-allround-test/src/main/java/org/apache/flink/streaming/tests/artificialstate/ArtificalOperatorStateMapper.java
index 1377c5262c1c11..91b77cf4967781 100644
--- a/flink-end-to-end-tests/flink-datastream-allround-test/src/main/java/org/apache/flink/streaming/tests/artificialstate/ArtificalOperatorStateMapper.java
+++ b/flink-end-to-end-tests/flink-datastream-allround-test/src/main/java/org/apache/flink/streaming/tests/artificialstate/ArtificalOperatorStateMapper.java
@@ -50,7 +50,7 @@
* subset of the whole union state. On restore, each subtask's restored union state should have one
* entry for each subtask in the previous run.
*
- *