Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doujutun3207
flink
提交
94070415
F
flink
项目概览
doujutun3207
/
flink
与 Fork 源项目一致
从无法访问的项目Fork
通知
24
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
flink
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
94070415
编写于
3月 02, 2015
作者:
U
Ufuk Celebi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[distributed runtime] Throw interrupted exception during partition request client creation
上级
6da093a6
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
12 addition
and
17 deletion
+12
-17
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/ConnectionManager.java
...rg/apache/flink/runtime/io/network/ConnectionManager.java
+1
-1
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/NettyConnectionManager.java
...link/runtime/io/network/netty/NettyConnectionManager.java
+1
-1
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/PartitionRequestClientFactory.java
...ntime/io/network/netty/PartitionRequestClientFactory.java
+3
-8
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/InputChannel.java
...k/runtime/io/network/partition/consumer/InputChannel.java
+1
-1
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/InputGate.java
...link/runtime/io/network/partition/consumer/InputGate.java
+1
-1
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java
...ime/io/network/partition/consumer/RemoteInputChannel.java
+1
-1
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGate.java
...untime/io/network/partition/consumer/SingleInputGate.java
+2
-2
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/UnionInputGate.java
...runtime/io/network/partition/consumer/UnionInputGate.java
+1
-1
flink-staging/flink-streaming/flink-streaming-core/src/main/java/org/apache/flink/streaming/io/CoRecordReader.java
...in/java/org/apache/flink/streaming/io/CoRecordReader.java
+1
-1
未找到文件。
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/ConnectionManager.java
浏览文件 @
94070415
...
...
@@ -34,7 +34,7 @@ public interface ConnectionManager {
/**
* Creates a {@link PartitionRequestClient} instance for the given {@link RemoteAddress}.
*/
PartitionRequestClient
createPartitionRequestClient
(
RemoteAddress
remoteAddress
)
throws
IOException
;
PartitionRequestClient
createPartitionRequestClient
(
RemoteAddress
remoteAddress
)
throws
IOException
,
InterruptedException
;
/**
* Closes opened ChannelConnections in case of a resource release
...
...
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/NettyConnectionManager.java
浏览文件 @
94070415
...
...
@@ -49,7 +49,7 @@ public class NettyConnectionManager implements ConnectionManager {
}
@Override
public
PartitionRequestClient
createPartitionRequestClient
(
RemoteAddress
remoteAddress
)
throws
IOException
{
public
PartitionRequestClient
createPartitionRequestClient
(
RemoteAddress
remoteAddress
)
throws
IOException
,
InterruptedException
{
return
partitionRequestClientFactory
.
createPartitionRequestClient
(
remoteAddress
);
}
...
...
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/PartitionRequestClientFactory.java
浏览文件 @
94070415
...
...
@@ -48,7 +48,7 @@ class PartitionRequestClientFactory {
* Atomically establishes a TCP connection to the given remote address and
* creates a {@link PartitionRequestClient} instance for this connection.
*/
PartitionRequestClient
createPartitionRequestClient
(
RemoteAddress
remoteAddress
)
throws
IOException
{
PartitionRequestClient
createPartitionRequestClient
(
RemoteAddress
remoteAddress
)
throws
IOException
,
InterruptedException
{
Object
entry
;
PartitionRequestClient
client
=
null
;
...
...
@@ -182,15 +182,10 @@ class PartitionRequestClientFactory {
private
volatile
Throwable
error
;
private
PartitionRequestClient
waitForChannel
()
throws
IOException
{
private
PartitionRequestClient
waitForChannel
()
throws
IOException
,
InterruptedException
{
synchronized
(
connectLock
)
{
while
(
error
==
null
&&
partitionRequestClient
==
null
)
{
try
{
connectLock
.
wait
(
2000
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
"Wait for channel connection interrupted."
);
}
connectLock
.
wait
(
2000
);
}
}
...
...
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/InputChannel.java
浏览文件 @
94070415
...
...
@@ -92,7 +92,7 @@ public abstract class InputChannel {
* The queue index to request depends on which sub task the channel belongs
* to and is specified by the consumer of this channel.
*/
public
abstract
void
requestIntermediateResultPartition
(
int
queueIndex
)
throws
IOException
;
public
abstract
void
requestIntermediateResultPartition
(
int
queueIndex
)
throws
IOException
,
InterruptedException
;
/**
* Returns the next buffer from the consumed subpartition.
...
...
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/InputGate.java
浏览文件 @
94070415
...
...
@@ -29,7 +29,7 @@ public interface InputGate {
public
boolean
isFinished
();
public
void
requestPartitions
()
throws
IOException
;
public
void
requestPartitions
()
throws
IOException
,
InterruptedException
;
public
BufferOrEvent
getNextBufferOrEvent
()
throws
IOException
,
InterruptedException
;
...
...
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java
浏览文件 @
94070415
...
...
@@ -85,7 +85,7 @@ public class RemoteInputChannel extends InputChannel {
// ------------------------------------------------------------------------
@Override
public
void
requestIntermediateResultPartition
(
int
queueIndex
)
throws
IOException
{
public
void
requestIntermediateResultPartition
(
int
queueIndex
)
throws
IOException
,
InterruptedException
{
if
(
partitionRequestClient
==
null
)
{
LOG
.
debug
(
"Requesting REMOTE queue {} from partition {} produced by {}."
,
queueIndex
,
partitionId
,
producerExecutionId
);
...
...
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGate.java
浏览文件 @
94070415
...
...
@@ -192,7 +192,7 @@ public class SingleInputGate implements InputGate {
}
}
public
void
updateInputChannel
(
PartitionInfo
partitionInfo
)
throws
IOException
{
public
void
updateInputChannel
(
PartitionInfo
partitionInfo
)
throws
IOException
,
InterruptedException
{
synchronized
(
requestLock
)
{
if
(
releasedResourcesFlag
)
{
// There was a race with a task failure/cancel
...
...
@@ -273,7 +273,7 @@ public class SingleInputGate implements InputGate {
}
@Override
public
void
requestPartitions
()
throws
IOException
{
public
void
requestPartitions
()
throws
IOException
,
InterruptedException
{
if
(!
requestedPartitionsFlag
)
{
// Sanity check
if
(
numberOfInputChannels
!=
inputChannels
.
size
())
{
...
...
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/UnionInputGate.java
浏览文件 @
94070415
...
...
@@ -120,7 +120,7 @@ public class UnionInputGate implements InputGate {
}
@Override
public
void
requestPartitions
()
throws
IOException
{
public
void
requestPartitions
()
throws
IOException
,
InterruptedException
{
if
(!
requestedPartitionsFlag
)
{
for
(
InputGate
inputGate
:
inputGates
)
{
inputGate
.
requestPartitions
();
...
...
flink-staging/flink-streaming/flink-streaming-core/src/main/java/org/apache/flink/streaming/io/CoRecordReader.java
浏览文件 @
94070415
...
...
@@ -78,7 +78,7 @@ public class CoRecordReader<T1 extends IOReadableWritable, T2 extends IOReadable
bufferReader2
.
registerListener
(
this
);
}
public
void
requestPartitionsOnce
()
throws
IOException
{
public
void
requestPartitionsOnce
()
throws
IOException
,
InterruptedException
{
if
(!
hasRequestedPartitions
)
{
bufferReader1
.
requestPartitions
();
bufferReader2
.
requestPartitions
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录