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. * *

Producer Wakeup

* diff --git a/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/writer/FileWriter.java b/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/writer/FileWriter.java index f8bc4c848ae422..90f3f58f31905f 100644 --- a/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/writer/FileWriter.java +++ b/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/writer/FileWriter.java @@ -54,7 +54,7 @@ /** * A {@link SinkWriter} implementation for {@link FileSink}. * - *

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 The type of input elements. diff --git a/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/MetastoreCommitPolicy.java b/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/MetastoreCommitPolicy.java index 85cafc87fc26dd..7d90e94397964f 100644 --- a/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/MetastoreCommitPolicy.java +++ b/flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/MetastoreCommitPolicy.java @@ -29,8 +29,8 @@ /** * Partition commit policy to update metastore. * - *

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 The tye of the partition offset, the partition offset is comparable. + * @param The type of the partition offset, the partition offset is comparable. */ interface ComparablePartitionValue> 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: * *

      * 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.
  *
- * 

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 extends RichMapFunction diff --git a/flink-end-to-end-tests/run-single-test.sh b/flink-end-to-end-tests/run-single-test.sh index a669ec88b99232..ec2430127ddcba 100755 --- a/flink-end-to-end-tests/run-single-test.sh +++ b/flink-end-to-end-tests/run-single-test.sh @@ -17,7 +17,7 @@ # limitations under the License. ################################################################################ -# This can be used to run a single test in the context of a test runnner +# This can be used to run a single test in the context of a test runner # Usage: ./run-single-test.sh [skip] test-scripts/my-test-case.sh # IMPORTANT: diff --git a/flink-end-to-end-tests/test-scripts/docker-hadoop-secure-cluster/hadoop/config/yarn-site.xml b/flink-end-to-end-tests/test-scripts/docker-hadoop-secure-cluster/hadoop/config/yarn-site.xml index ca3d059da32c50..a2a2f98670d843 100644 --- a/flink-end-to-end-tests/test-scripts/docker-hadoop-secure-cluster/hadoop/config/yarn-site.xml +++ b/flink-end-to-end-tests/test-scripts/docker-hadoop-secure-cluster/hadoop/config/yarn-site.xml @@ -184,7 +184,7 @@ under the License. file:///hadoop-data/nm-log-dirs diff --git a/flink-end-to-end-tests/test-scripts/test_resume_externalized_checkpoints.sh b/flink-end-to-end-tests/test-scripts/test_resume_externalized_checkpoints.sh index 601733eb1d1e40..d4884b24d744d6 100755 --- a/flink-end-to-end-tests/test-scripts/test_resume_externalized_checkpoints.sh +++ b/flink-end-to-end-tests/test-scripts/test_resume_externalized_checkpoints.sh @@ -134,7 +134,7 @@ function run_resume_externalized_checkpoints() { wait_job_running $DATASTREAM_JOB wait_oper_metric_num_in_records SemanticsCheckMapper.0 200 - # if state is errorneous and the general purpose DataStream job produces alerting messages, + # if state is erroneous and the general purpose DataStream job produces alerting messages, # output would be non-empty and the test will not pass } diff --git a/flink-end-to-end-tests/test-scripts/test_resume_savepoint.sh b/flink-end-to-end-tests/test-scripts/test_resume_savepoint.sh index 2ea41f6b496b65..efad5ed073e07e 100755 --- a/flink-end-to-end-tests/test-scripts/test_resume_savepoint.sh +++ b/flink-end-to-end-tests/test-scripts/test_resume_savepoint.sh @@ -123,7 +123,7 @@ run_resume_savepoint_test() { wait_oper_metric_num_in_records SemanticsCheckMapper.0 200 - # if state is errorneous and the state machine job produces alerting state transitions, + # if state is erroneous and the state machine job produces alerting state transitions, # output would be non-empty and the test will not pass } diff --git a/flink-filesystems/flink-oss-fs-hadoop/src/main/java/org/apache/flink/fs/osshadoop/writer/OSSRecoverableFsDataOutputStream.java b/flink-filesystems/flink-oss-fs-hadoop/src/main/java/org/apache/flink/fs/osshadoop/writer/OSSRecoverableFsDataOutputStream.java index 01388f9720e150..0930c861b0d7c9 100644 --- a/flink-filesystems/flink-oss-fs-hadoop/src/main/java/org/apache/flink/fs/osshadoop/writer/OSSRecoverableFsDataOutputStream.java +++ b/flink-filesystems/flink-oss-fs-hadoop/src/main/java/org/apache/flink/fs/osshadoop/writer/OSSRecoverableFsDataOutputStream.java @@ -35,7 +35,7 @@ /** * A RecoverableFsDataOutputStream to OSS 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/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. - diff --git a/flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/CsvRowSchemaConverter.java b/flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/CsvRowSchemaConverter.java index 352e74a1ba8611..8d2482a2df915f 100644 --- a/flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/CsvRowSchemaConverter.java +++ b/flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/CsvRowSchemaConverter.java @@ -38,7 +38,7 @@ import java.util.List; /** - * Converter functions that covert Flink's type information to Jackson's {@link CsvSchema}. + * Converter functions that convert Flink's type information to Jackson's {@link CsvSchema}. * *

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 `_, instance and is able to scale working state to many -terrabytes in size, only limited by available disk space across all task managers. +terabytes in size, only limited by available disk space across all task managers. **Raw Bytes Storage and Backends** diff --git a/flink-python/pyflink/datastream/checkpoint_storage.py b/flink-python/pyflink/datastream/checkpoint_storage.py index 054d1d05f98305..ae357130374a8e 100644 --- a/flink-python/pyflink/datastream/checkpoint_storage.py +++ b/flink-python/pyflink/datastream/checkpoint_storage.py @@ -237,7 +237,7 @@ class FileSystemCheckpointStorage(CheckpointStorage): many small files. The threshold for that is configurable. When increasing this threshold, the size of the checkpoint metadata increases. The checkpoint metadata of all retained completed checkpoints needs to fit into the JobManager's heap memory. This is typically not a problem, - unless the threashold `get_min_file_size_threshold` is increased significantly. + unless the threshold `get_min_file_size_threshold` is increased significantly. **Persistence Guarantees** @@ -340,7 +340,7 @@ def get_min_file_size_threshold(self) -> int: """ Gets the threshold below which state is stored as part of the metadata, rather than in file. This threshold ensures the backend does not create a large amount of small files, - where potentially the file pointers are larget than the state itself. + where potentially the file pointers are larger than the state itself. """ return self._j_checkpoint_storage.getMinFileSizeThreshold() diff --git a/flink-python/pyflink/datastream/connectors/kafka.py b/flink-python/pyflink/datastream/connectors/kafka.py index f6cf488b3ad1df..1f2eb3b4ace404 100644 --- a/flink-python/pyflink/datastream/connectors/kafka.py +++ b/flink-python/pyflink/datastream/connectors/kafka.py @@ -256,8 +256,8 @@ class FlinkKafkaProducerBase(SinkFunction, ABC): Flink Sink to produce data into a Kafka topic. Please note that this producer provides at-least-once reliability guarantees when checkpoints - are enabled and set_flush_on_checkpoint(True) is set. Otherwise, the producer doesn;t provid any - reliability guarantees. + are enabled and set_flush_on_checkpoint(True) is set. Otherwise, the producer doesn't provide + any reliability guarantees. """ def __init__(self, j_flink_kafka_producer): diff --git a/flink-python/pyflink/datastream/functions.py b/flink-python/pyflink/datastream/functions.py index db4366390e1abb..516772c2dd5637 100644 --- a/flink-python/pyflink/datastream/functions.py +++ b/flink-python/pyflink/datastream/functions.py @@ -91,7 +91,7 @@ def get_list_state(self, state_descriptor: ListStateDescriptor) -> ListState: """ Gets a handle to the system's key/value list state. This state is similar to the value state access, but is optimized for state that holds lists. One can add elements to the list, or - retrieve the list as a whle. + retrieve the list as a whole. This state is only accessible if the function is executed on a KeyedStream. """ @@ -288,7 +288,7 @@ class FlatMapFunction(Function): @abstractmethod def flat_map(self, value): """ - The core mthod of the FlatMapFunction. Takes an element from the input data and transforms + The core method of the FlatMapFunction. Takes an element from the input data and transforms it into zero, one, or more elements. A basic implementation of flat map is as follows: diff --git a/flink-python/pyflink/datastream/state_backend.py b/flink-python/pyflink/datastream/state_backend.py index 6b3c3ddd5a7151..122cc05f95c386 100644 --- a/flink-python/pyflink/datastream/state_backend.py +++ b/flink-python/pyflink/datastream/state_backend.py @@ -71,7 +71,7 @@ class StateBackend(object, metaclass=ABCMeta): The :class:`EmbeddedRocksDBStateBackend` stores working state in an embedded `RocksDB `_, instance and is able to scale working state to many - terrabytes in size, only limited by available disk space across all task managers. + terabytes in size, only limited by available disk space across all task managers. **Raw Bytes Storage and Backends** @@ -244,7 +244,7 @@ def get_db_storage_paths(self) -> List[str]: 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, + metadata 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. diff --git a/flink-python/pyflink/table/types.py b/flink-python/pyflink/table/types.py index ac8397e007d66b..a065f537781429 100644 --- a/flink-python/pyflink/table/types.py +++ b/flink-python/pyflink/table/types.py @@ -1405,7 +1405,7 @@ def deserialize(self, datum): # We should be careful here. The size of these types in python depends on C # implementation. We need to make sure that this conversion does not lose any # precision. Also, JVM only support signed types, when converting unsigned types, -# keep in mind that it requires 1 more bit when stored as singed types. +# keep in mind that it requires 1 more bit when stored as signed types. # # Reference for C integer size, see: # ISO/IEC 9899:201x specification, chapter 5.2.4.2.1 Sizes of integer types . diff --git a/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/StreamArrowPythonGroupWindowAggregateFunctionOperator.java b/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/StreamArrowPythonGroupWindowAggregateFunctionOperator.java index fef7c28421d924..7d97cc812ee04b 100644 --- a/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/StreamArrowPythonGroupWindowAggregateFunctionOperator.java +++ b/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/StreamArrowPythonGroupWindowAggregateFunctionOperator.java @@ -326,7 +326,7 @@ private boolean isWindowLate(W window) { /** * Returns the cleanup time for a window, which is {@code window.maxTimestamp + - * allowedLateness}. In case this leads to a value greated than {@link Long#MAX_VALUE} then a + * allowedLateness}. In case this leads to a value greater than {@link Long#MAX_VALUE} then a * cleanup time of {@link Long#MAX_VALUE} is returned. * * @param window the window whose cleanup time we are computing. diff --git a/flink-rpc/flink-rpc-akka/src/main/java/org/apache/flink/runtime/rpc/pekko/PekkoUtils.java b/flink-rpc/flink-rpc-akka/src/main/java/org/apache/flink/runtime/rpc/pekko/PekkoUtils.java index b12b03b4defe4b..ddd3a5220614af 100644 --- a/flink-rpc/flink-rpc-akka/src/main/java/org/apache/flink/runtime/rpc/pekko/PekkoUtils.java +++ b/flink-rpc/flink-rpc-akka/src/main/java/org/apache/flink/runtime/rpc/pekko/PekkoUtils.java @@ -492,7 +492,7 @@ public static Config getConfig( * @param externalAddress optional tuple of external address and port to be reachable at. If * null is given, then a Pekko config for local actor system will be returned * @param bindAddress optional tuple of bind address and port to be used locally. If null is - * given, wildcard IP address and the external port wil be used. Takes effect only if + * given, wildcard IP address and the external port will be used. Takes effect only if * externalAddress is not null. * @param executorConfig config defining the used executor by the default dispatcher * @return Pekko config diff --git a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStIncrementalCheckpointUtils.java b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStIncrementalCheckpointUtils.java index 3f16081ede54f2..b8859981a41e3a 100644 --- a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStIncrementalCheckpointUtils.java +++ b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStIncrementalCheckpointUtils.java @@ -316,7 +316,7 @@ public static int findTheBestStateHandleForInitial( return bestHandlePos; } - /** Helper class tha defines a key-range in RocksDB as byte arrays for min and max key. */ + /** Helper class that defines a key-range in RocksDB as byte arrays for min and max key. */ private static final class KeyRange { static final KeyRange EMPTY = KeyRange.of(new byte[0], new byte[0]); diff --git a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStKeyedStateBackend.java b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStKeyedStateBackend.java index 8160252fb73c1a..6b4a1a635f4eb5 100644 --- a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStKeyedStateBackend.java +++ b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStKeyedStateBackend.java @@ -585,7 +585,7 @@ public void dispose() { if (db != null) { // 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-forst/src/main/java/org/apache/flink/state/forst/ForStMapState.java b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStMapState.java index 4f73785608a2aa..3ad1a1257a6ecd 100644 --- a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStMapState.java +++ b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStMapState.java @@ -206,8 +206,8 @@ public ForStDBPutRequest buildDBPutRequest(StateRequest st } /** - * Build a request for bunch put. Maily used for {@link StateRequestType#MAP_PUT_ALL} and {@link - * StateRequestType#CLEAR}. + * Build a request for bunch put. Mainly used for {@link StateRequestType#MAP_PUT_ALL} and + * {@link StateRequestType#CLEAR}. * * @param stateRequest The state request. * @return The {@code ForStDBBunchPutRequest}. diff --git a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStStateBackend.java b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStStateBackend.java index e8f51c0c631687..56698020042186 100644 --- a/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStStateBackend.java +++ b/flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStStateBackend.java @@ -723,7 +723,7 @@ public void setLocalDbStoragePaths(String... paths) { * Gets the configured local DB storage paths, or null, if none were configured. * *

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 int findTheBestStateHandleForInitial( return bestHandlePos; } - /** Helper class tha defines a key-range in RocksDB as byte arrays for min and max key. */ + /** Helper class that defines a key-range in RocksDB as byte arrays for min and max key. */ private static final class KeyRange { static final KeyRange EMPTY = KeyRange.of(new byte[0], new byte[0]); diff --git a/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBKeyedStateBackend.java b/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBKeyedStateBackend.java index d9958b7566e06a..ca302508297ba1 100644 --- a/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBKeyedStateBackend.java +++ b/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBKeyedStateBackend.java @@ -593,7 +593,7 @@ public void dispose() { IOUtils.closeQuietly(writeBatchWrapper); // Metric collection occurs on a background thread. When this method returns - // it is guaranteed that thr RocksDB reference has been invalidated + // it is guaranteed that the RocksDB reference has been invalidated // and no more metric collection will be attempted against the database. if (nativeMetricMonitor != null) { nativeMetricMonitor.close(); diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/Bucket.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/Bucket.java index 3e43949d4a6d71..ebca734aca0756 100644 --- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/Bucket.java +++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/Bucket.java @@ -153,7 +153,7 @@ private void restoreInProgressFile(final BucketState state) throws IOE private void commitRecoveredPendingFiles(final BucketState state) throws IOException { - // we commit pending files for checkpoints that precess the last successful one, from which + // we commit pending files for checkpoints that precede the last successful one, from which // we are recovering for (List pendingFileRecoverables : state.getPendingFileRecoverablesPerCheckpoint().values()) { diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/async/AsyncWaitOperator.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/async/AsyncWaitOperator.java index 7c2972d8ee8198..b50fcf8801c3e7 100644 --- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/async/AsyncWaitOperator.java +++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/async/AsyncWaitOperator.java @@ -651,7 +651,7 @@ private class ResultHandler implements ResultFuture { private final ResultFuture resultFuture; /** - * A guard against ill-written AsyncFunction. Additional (parallel) invokations of {@link + * A guard against ill-written AsyncFunction. Additional (parallel) invocations of {@link * #complete(Collection)} or {@link #completeExceptionally(Throwable)} will be ignored. This * guard also helps for cases where proper results and timeouts happen at the same time. */ diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/AsyncProcessingTimeoutTrigger.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/AsyncProcessingTimeoutTrigger.java index ea602cb172fc34..a876e7aed5f68d 100644 --- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/AsyncProcessingTimeoutTrigger.java +++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/AsyncProcessingTimeoutTrigger.java @@ -38,7 +38,7 @@ *

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 The type of elements on which this trigger can operate. diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/ProcessingTimeoutTrigger.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/ProcessingTimeoutTrigger.java index 7d972e8864374a..387ff89d40ab9c 100644 --- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/ProcessingTimeoutTrigger.java +++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/ProcessingTimeoutTrigger.java @@ -35,7 +35,7 @@ *

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 The type of elements on which this trigger can operate. diff --git a/flink-tests/pom.xml b/flink-tests/pom.xml index 6c06891597d261..8ed8bba714669a 100644 --- a/flink-tests/pom.xml +++ b/flink-tests/pom.xml @@ -673,7 +673,7 @@ under the License. - diff --git a/pom.xml b/pom.xml index 8d7c3a37455a34..052c0337d62eb4 100644 --- a/pom.xml +++ b/pom.xml @@ -342,7 +342,7 @@ under the License. asm, netty here. It will overwrite Hadoop's guava dependency (even though we handle it - separatly in the flink-shaded-hadoop-2 dependency). + separately in the flink-shaded-hadoop-2 dependency). --> diff --git a/tools/azure-pipelines/jobs-template.yml b/tools/azure-pipelines/jobs-template.yml index 3d402eedbd9f50..3db9ebce6838cc 100644 --- a/tools/azure-pipelines/jobs-template.yml +++ b/tools/azure-pipelines/jobs-template.yml @@ -53,7 +53,7 @@ jobs: # Note that we use the year number that the pipeline run starts in the cache key, # which means the cache is invalidated per year, in order to avoid the size of # cached .m2 directory growing indefinitely. - # Offical documentation of the Cache task: https://docs.microsoft.com/en-us/azure/devops/pipelines/caching/?view=azure-devops + # Official documentation of the Cache task: https://docs.microsoft.com/en-us/azure/devops/pipelines/caching/?view=azure-devops - task: Cache@2 inputs: key: $(PIPELINE_START_YEAR) | $(CACHE_KEY)