You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tr...@apache.org on 2019/06/05 12:35:33 UTC
[flink] 01/02: [hotfix] Fix the typo issue
This is an automated email from the ASF dual-hosted git repository.
trohrmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 41d0ac0c868466fbca21f9e69a41d868fbbe51ff
Author: Zhijiang <wa...@aliyun.com>
AuthorDate: Fri May 24 14:41:16 2019 +0800
[hotfix] Fix the typo issue
---
.../java/org/apache/flink/runtime/taskmanager/Task.java | 4 ++--
.../flink/runtime/io/network/NetworkEnvironmentTest.java | 16 ++++++++--------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java b/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java
index 06df24e..27d9cdc 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java
@@ -593,7 +593,7 @@ public class Task implements Runnable, TaskActions, PartitionProducerStateProvid
LOG.info("Registering task at network: {}.", this);
- setupPartionsAndGates(consumableNotifyingPartitionWriters, inputGates);
+ setupPartitionsAndGates(consumableNotifyingPartitionWriters, inputGates);
for (ResultPartitionWriter partitionWriter : consumableNotifyingPartitionWriters) {
taskEventDispatcher.registerPartition(partitionWriter.getPartitionId());
@@ -823,7 +823,7 @@ public class Task implements Runnable, TaskActions, PartitionProducerStateProvid
}
@VisibleForTesting
- public static void setupPartionsAndGates(
+ public static void setupPartitionsAndGates(
ResultPartitionWriter[] producedPartitions, InputGate[] inputGates) throws IOException {
for (ResultPartitionWriter partition : producedPartitions) {
diff --git a/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/NetworkEnvironmentTest.java b/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/NetworkEnvironmentTest.java
index 5e41ec0..933f385 100644
--- a/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/NetworkEnvironmentTest.java
+++ b/flink-runtime/src/test/java/org/apache/flink/runtime/io/network/NetworkEnvironmentTest.java
@@ -64,7 +64,7 @@ public class NetworkEnvironmentTest {
public ExpectedException expectedException = ExpectedException.none();
/**
- * Verifies that {@link Task#setupPartionsAndGates(ResultPartitionWriter[], InputGate[])}} sets up (un)bounded buffer pool
+ * Verifies that {@link Task#setupPartitionsAndGates(ResultPartitionWriter[], InputGate[])}} sets up (un)bounded buffer pool
* instances for various types of input and output channels.
*/
@Test
@@ -87,7 +87,7 @@ public class NetworkEnvironmentTest {
SingleInputGate ig4 = createSingleInputGate(network, ResultPartitionType.PIPELINED_BOUNDED, 8);
final SingleInputGate[] inputGates = new SingleInputGate[] {ig1, ig2, ig3, ig4};
- Task.setupPartionsAndGates(resultPartitions, inputGates);
+ Task.setupPartitionsAndGates(resultPartitions, inputGates);
// verify buffer pools for the result partitions
assertEquals(rp1.getNumberOfSubpartitions(), rp1.getBufferPool().getNumberOfRequiredMemorySegments());
@@ -128,7 +128,7 @@ public class NetworkEnvironmentTest {
}
/**
- * Verifies that {@link Task#setupPartionsAndGates(ResultPartitionWriter[], InputGate[])}} sets up (un)bounded buffer pool
+ * Verifies that {@link Task#setupPartitionsAndGates(ResultPartitionWriter[], InputGate[])}} sets up (un)bounded buffer pool
* instances for various types of input and output channels working with the bare minimum of
* required buffers.
*/
@@ -148,7 +148,7 @@ public class NetworkEnvironmentTest {
}
/**
- * Verifies that {@link Task#setupPartionsAndGates(ResultPartitionWriter[], InputGate[])}} fails if the bare minimum of
+ * Verifies that {@link Task#setupPartitionsAndGates(ResultPartitionWriter[], InputGate[])}} fails if the bare minimum of
* required buffers is not available (we are one buffer short).
*/
@Test
@@ -208,7 +208,7 @@ public class NetworkEnvironmentTest {
createRemoteInputChannel(ig3, 3, rp4, connManager, network.getNetworkBufferPool());
}
- Task.setupPartionsAndGates(resultPartitions, inputGates);
+ Task.setupPartitionsAndGates(resultPartitions, inputGates);
// verify buffer pools for the result partitions
assertEquals(Integer.MAX_VALUE, rp1.getBufferPool().getMaxNumberOfMemorySegments());
@@ -250,16 +250,16 @@ public class NetworkEnvironmentTest {
/**
* Helper to create spy of a {@link SingleInputGate} for use by a {@link Task} inside
- * {@link Task#setupPartionsAndGates(ResultPartitionWriter[], InputGate[])}}.
+ * {@link Task#setupPartitionsAndGates(ResultPartitionWriter[], InputGate[])}}.
*
* @param network
- * network enviroment to create buffer pool factory for {@link SingleInputGate}
+ * network environment to create buffer pool factory for {@link SingleInputGate}
* @param partitionType
* the consumed partition type
* @param numberOfChannels
* the number of input channels
*
- * @return input gate with some fake settiFngs
+ * @return input gate with some fake settings
*/
private SingleInputGate createSingleInputGate(
NetworkEnvironment network, ResultPartitionType partitionType, int numberOfChannels) {