Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doujutun3207
flink
提交
0df34948
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,发现更多精彩内容 >>
提交
0df34948
编写于
10月 25, 2012
作者:
D
Daniel Warneke
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Worked on handling of new InterruptedException for RPC calls
上级
1f84ad42
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
95 addition
and
87 deletion
+95
-87
nephele/nephele-common/src/main/java/eu/stratosphere/nephele/client/JobClient.java
...c/main/java/eu/stratosphere/nephele/client/JobClient.java
+20
-12
nephele/nephele-common/src/main/java/eu/stratosphere/nephele/protocols/JobManagementProtocol.java
...stratosphere/nephele/protocols/JobManagementProtocol.java
+12
-4
nephele/nephele-examples/src/main/java/eu/stratosphere/nephele/example/broadcast/BroadcastJob.java
.../stratosphere/nephele/example/broadcast/BroadcastJob.java
+1
-1
nephele/nephele-examples/src/main/java/eu/stratosphere/nephele/example/compression/CompressionTest.java
...tosphere/nephele/example/compression/CompressionTest.java
+1
-6
nephele/nephele-examples/src/main/java/eu/stratosphere/nephele/example/events/EventExample.java
.../eu/stratosphere/nephele/example/events/EventExample.java
+2
-4
nephele/nephele-examples/src/main/java/eu/stratosphere/nephele/example/speedtest/SpeedTest.java
.../eu/stratosphere/nephele/example/speedtest/SpeedTest.java
+2
-10
nephele/nephele-server/src/main/java/eu/stratosphere/nephele/protocols/ChannelLookupProtocol.java
...stratosphere/nephele/protocols/ChannelLookupProtocol.java
+4
-2
nephele/nephele-server/src/test/java/eu/stratosphere/nephele/checkpointing/FailingJobITCase.java
.../stratosphere/nephele/checkpointing/FailingJobITCase.java
+9
-21
nephele/nephele-server/src/test/java/eu/stratosphere/nephele/jobmanager/JobManagerITCase.java
.../eu/stratosphere/nephele/jobmanager/JobManagerITCase.java
+35
-25
nephele/nephele-visualization/src/main/java/eu/stratosphere/nephele/visualization/swt/SWTVisualization.java
...atosphere/nephele/visualization/swt/SWTVisualization.java
+1
-1
nephele/nephele-visualization/src/main/java/eu/stratosphere/nephele/visualization/swt/SWTVisualizationGUI.java
...sphere/nephele/visualization/swt/SWTVisualizationGUI.java
+2
-0
pact/pact-clients/src/main/java/eu/stratosphere/pact/client/nephele/api/Client.java
.../java/eu/stratosphere/pact/client/nephele/api/Client.java
+3
-0
pact/pact-clients/src/main/java/eu/stratosphere/pact/testing/TestPlan.java
.../src/main/java/eu/stratosphere/pact/testing/TestPlan.java
+2
-0
pact/pact-clients/src/test/java/eu/stratosphere/pact/client/nephele/api/ClientTest.java
...a/eu/stratosphere/pact/client/nephele/api/ClientTest.java
+1
-1
未找到文件。
nephele/nephele-common/src/main/java/eu/stratosphere/nephele/client/JobClient.java
浏览文件 @
0df34948
...
...
@@ -117,15 +117,13 @@ public class JobClient {
+
":\tJobClient is shutting down, canceling job..."
);
this
.
jobClient
.
cancelJob
();
}
// Close the RPC object
this
.
jobClient
.
close
();
}
catch
(
IOException
ioe
)
{
LOG
.
warn
(
StringUtils
.
stringifyException
(
ioe
));
}
catch
(
Exception
e
)
{
LOG
.
debug
(
StringUtils
.
stringifyException
(
e
));
}
}
// Close the RPC object
this
.
jobClient
.
close
();
}
}
/**
...
...
@@ -216,8 +214,10 @@ public class JobClient {
* @return a <code>JobSubmissionResult</code> object encapsulating the results of the job submission
* @throws IOException
* thrown in case of submission errors while transmitting the data to the job manager
* @throws InterruptedException
* thrown if the caller is interrupted while waiting for the response of the remote procedure call
*/
public
JobSubmissionResult
submitJob
()
throws
IOException
{
public
JobSubmissionResult
submitJob
()
throws
IOException
,
InterruptedException
{
return
this
.
jobSubmitClient
.
submitJob
(
this
.
jobGraph
);
}
...
...
@@ -228,8 +228,10 @@ public class JobClient {
* @return a <code>JobCancelResult</code> object encapsulating the result of the job cancel request
* @throws IOException
* thrown if an error occurred while transmitting the request to the job manager
* @throws InterruptedException
* thrown if the caller is interrupted while waiting for the response of the remote procedure call
*/
public
JobCancelResult
cancelJob
()
throws
IOException
{
public
JobCancelResult
cancelJob
()
throws
IOException
,
InterruptedException
{
return
this
.
jobSubmitClient
.
cancelJob
(
this
.
jobGraph
.
getJobID
());
}
...
...
@@ -240,8 +242,10 @@ public class JobClient {
* @return a <code>JobProgressResult</code> object including the current job progress
* @throws IOException
* thrown if an error occurred while transmitting the request
* @throws InterruptedException
* thrown if the caller is interrupted while waiting for the response of the remote procedure call
*/
public
JobProgressResult
getJobProgress
()
throws
IOException
{
public
JobProgressResult
getJobProgress
()
throws
IOException
,
InterruptedException
{
return
this
.
jobSubmitClient
.
getJobProgress
(
this
.
jobGraph
.
getJobID
());
}
...
...
@@ -253,10 +257,12 @@ public class JobClient {
* @return the duration of the job execution in milliseconds
* @throws IOException
* thrown if an error occurred while transmitting the request
* @throws InterruptedException
* thrown if the caller is interrupted while waiting for the response of the remote procedure call
* @throws JobExecutionException
* thrown if the job has been aborted either by the user or as a result of an error
*/
public
long
submitJobAndWait
()
throws
IOException
,
JobExecutionException
{
public
long
submitJobAndWait
()
throws
IOException
,
InterruptedException
,
JobExecutionException
{
final
JobSubmissionResult
submissionResult
=
this
.
jobSubmitClient
.
submitJob
(
this
.
jobGraph
);
if
(
submissionResult
.
getReturnCode
()
==
AbstractJobResult
.
ReturnCode
.
ERROR
)
{
...
...
@@ -364,8 +370,10 @@ public class JobClient {
* @return the interval in seconds
* @throws IOException
* thrown if an error occurred while transmitting the request
* @throws InterruptedException
* thrown if the caller is interrupted while waiting for the response of the remote procedure call
*/
public
int
getRecommendedPollingInterval
()
throws
IOException
{
public
int
getRecommendedPollingInterval
()
throws
IOException
,
InterruptedException
{
return
this
.
jobSubmitClient
.
getRecommendedPollingInterval
();
}
...
...
nephele/nephele-common/src/main/java/eu/stratosphere/nephele/protocols/JobManagementProtocol.java
浏览文件 @
0df34948
...
...
@@ -40,8 +40,10 @@ public interface JobManagementProtocol extends RPCProtocol {
* @return a protocol of the job submission including the success status
* @throws IOException
* thrown if an error occurred while transmitting the submit request
* @throws InterruptedException
* thrown if the caller is interrupted while waiting for the response of the remote procedure call
*/
JobSubmissionResult
submitJob
(
JobGraph
job
)
throws
IOException
;
JobSubmissionResult
submitJob
(
JobGraph
job
)
throws
IOException
,
InterruptedException
;
/**
* Retrieves the current status of the job specified by the given ID. Consecutive
...
...
@@ -53,8 +55,10 @@ public interface JobManagementProtocol extends RPCProtocol {
* @return a {@link JobProgressResult} object including the current job progress
* @throws IOException
* thrown if an error occurred while transmitting the request
* @throws InterruptedException
* thrown if the caller is interrupted while waiting for the response of the remote procedure call
*/
JobProgressResult
getJobProgress
(
JobID
jobID
)
throws
IOException
;
JobProgressResult
getJobProgress
(
JobID
jobID
)
throws
IOException
,
InterruptedException
;
/**
* Requests to cancel the job specified by the given ID.
...
...
@@ -64,8 +68,10 @@ public interface JobManagementProtocol extends RPCProtocol {
* @return a {@link JobCancelResult} containing the result of the cancel request
* @throws IOException
* thrown if an error occurred while transmitting the request
* @throws InterruptedException
* thrown if the caller is interrupted while waiting for the response of the remote procedure call
*/
JobCancelResult
cancelJob
(
JobID
jobID
)
throws
IOException
;
JobCancelResult
cancelJob
(
JobID
jobID
)
throws
IOException
,
InterruptedException
;
/**
* Returns the recommended interval in seconds in which a client
...
...
@@ -74,6 +80,8 @@ public interface JobManagementProtocol extends RPCProtocol {
* @return the interval in seconds
* @throws IOException
* thrown if an error occurred while transmitting the request
* @throws InterruptedException
* thrown if the caller is interrupted while waiting for the response of the remote procedure call
*/
int
getRecommendedPollingInterval
()
throws
IOException
;
int
getRecommendedPollingInterval
()
throws
IOException
,
InterruptedException
;
}
nephele/nephele-examples/src/main/java/eu/stratosphere/nephele/example/broadcast/BroadcastJob.java
浏览文件 @
0df34948
...
...
@@ -202,7 +202,7 @@ public class BroadcastJob {
* writer object to write the duration results for each run
*/
private
static
void
runJob
(
final
int
run
,
final
BufferedWriter
throughputWriter
,
final
BufferedWriter
durationWriter
)
throws
JobGraphDefinitionException
,
IOException
,
JobExecutionException
{
throws
JobGraphDefinitionException
,
IOException
,
InterruptedException
,
JobExecutionException
{
// Construct job graph
final
JobGraph
jobGraph
=
new
JobGraph
(
"Broadcast Job (Run "
+
run
+
")"
);
...
...
nephele/nephele-examples/src/main/java/eu/stratosphere/nephele/example/compression/CompressionTest.java
浏览文件 @
0df34948
...
...
@@ -15,10 +15,7 @@
package
eu.stratosphere.nephele.example.compression
;
import
java.io.IOException
;
import
eu.stratosphere.nephele.client.JobClient
;
import
eu.stratosphere.nephele.client.JobExecutionException
;
import
eu.stratosphere.nephele.configuration.Configuration
;
import
eu.stratosphere.nephele.fs.Path
;
import
eu.stratosphere.nephele.io.channels.ChannelType
;
...
...
@@ -79,9 +76,7 @@ public class CompressionTest {
jobClient
.
submitJobAndWait
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
catch
(
JobExecutionException
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
...
...
nephele/nephele-examples/src/main/java/eu/stratosphere/nephele/example/events/EventExample.java
浏览文件 @
0df34948
...
...
@@ -46,8 +46,6 @@ import eu.stratosphere.nephele.jobgraph.JobGraph;
import
eu.stratosphere.nephele.jobgraph.JobGraphDefinitionException
;
import
eu.stratosphere.nephele.jobgraph.JobTaskVertex
;
import
java.io.IOException
;
/**
* @author casp
*/
...
...
@@ -91,8 +89,8 @@ public class EventExample {
JobClient
jobClient
=
new
JobClient
(
jobGraph
,
conf
);
JobSubmissionResult
result
=
jobClient
.
submitJob
();
System
.
out
.
println
(
result
.
getDescription
());
}
catch
(
IOException
io
e
)
{
io
e
.
printStackTrace
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
...
...
nephele/nephele-examples/src/main/java/eu/stratosphere/nephele/example/speedtest/SpeedTest.java
浏览文件 @
0df34948
...
...
@@ -16,10 +16,8 @@
package
eu.stratosphere.nephele.example.speedtest
;
import
java.io.File
;
import
java.io.IOException
;
import
eu.stratosphere.nephele.client.JobClient
;
import
eu.stratosphere.nephele.client.JobExecutionException
;
import
eu.stratosphere.nephele.configuration.ConfigConstants
;
import
eu.stratosphere.nephele.configuration.Configuration
;
import
eu.stratosphere.nephele.fs.Path
;
...
...
@@ -196,14 +194,8 @@ public final class SpeedTest {
// Calculate throughput in MBit/s and output it
System
.
out
.
print
(
"Job finished with a throughput of "
+
toMBitPerSecond
(
amountOfDataToSend
,
executionTime
));
}
catch
(
IOException
ioe
)
{
ioe
.
printStackTrace
();
System
.
exit
(
1
);
return
;
}
catch
(
JobExecutionException
jee
)
{
jee
.
printStackTrace
();
System
.
exit
(
1
);
return
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
...
...
nephele/nephele-server/src/main/java/eu/stratosphere/nephele/protocols/ChannelLookupProtocol.java
浏览文件 @
0df34948
...
...
@@ -42,8 +42,10 @@ public interface ChannelLookupProtocol extends RPCProtocol {
* the ID of the channel to resolve
* @return the lookup response containing the connection info and a return code
* @throws IOException
* thrown if an error occurs during the IPC call
* thrown if an error occurs during the remote procedure call
* @throws InterruptedException
* thrown if the caller is interrupted while waiting for the result of the remote procedure call
*/
ConnectionInfoLookupResponse
lookupConnectionInfo
(
InstanceConnectionInfo
caller
,
JobID
jobID
,
ChannelID
sourceChannelID
)
throws
IOException
;
ChannelID
sourceChannelID
)
throws
IOException
,
InterruptedException
;
}
nephele/nephele-server/src/test/java/eu/stratosphere/nephele/checkpointing/FailingJobITCase.java
浏览文件 @
0df34948
...
...
@@ -565,9 +565,7 @@ public class FailingJobITCase {
try
{
jobClient
=
new
JobClient
(
jobGraph
,
configuration
);
jobClient
.
submitJobAndWait
();
}
catch
(
IOException
ioe
)
{
fail
(
StringUtils
.
stringifyException
(
ioe
));
}
catch
(
JobExecutionException
e
)
{
}
catch
(
Exception
e
)
{
fail
(
StringUtils
.
stringifyException
(
e
));
}
finally
{
if
(
jobClient
!=
null
)
{
...
...
@@ -624,9 +622,7 @@ public class FailingJobITCase {
try
{
jobClient
=
new
JobClient
(
jobGraph
,
configuration
);
jobClient
.
submitJobAndWait
();
}
catch
(
IOException
ioe
)
{
fail
(
StringUtils
.
stringifyException
(
ioe
));
}
catch
(
JobExecutionException
e
)
{
}
catch
(
Exception
e
)
{
fail
(
StringUtils
.
stringifyException
(
e
));
}
finally
{
if
(
jobClient
!=
null
)
{
...
...
@@ -690,9 +686,7 @@ public class FailingJobITCase {
try
{
jobClient
=
new
JobClient
(
jobGraph
,
configuration
);
jobClient
.
submitJobAndWait
();
}
catch
(
IOException
ioe
)
{
fail
(
StringUtils
.
stringifyException
(
ioe
));
}
catch
(
JobExecutionException
e
)
{
}
catch
(
Exception
e
)
{
fail
(
StringUtils
.
stringifyException
(
e
));
}
finally
{
if
(
jobClient
!=
null
)
{
...
...
@@ -763,9 +757,7 @@ public class FailingJobITCase {
try
{
jobClient
=
new
JobClient
(
jobGraph
,
configuration
);
jobClient
.
submitJobAndWait
();
}
catch
(
IOException
ioe
)
{
fail
(
StringUtils
.
stringifyException
(
ioe
));
}
catch
(
JobExecutionException
e
)
{
}
catch
(
Exception
e
)
{
fail
(
StringUtils
.
stringifyException
(
e
));
}
finally
{
if
(
jobClient
!=
null
)
{
...
...
@@ -840,9 +832,7 @@ public class FailingJobITCase {
try
{
jobClient
=
new
JobClient
(
jobGraph
,
configuration
);
jobClient
.
submitJobAndWait
();
}
catch
(
IOException
ioe
)
{
fail
(
StringUtils
.
stringifyException
(
ioe
));
}
catch
(
JobExecutionException
e
)
{
}
catch
(
Exception
e
)
{
fail
(
StringUtils
.
stringifyException
(
e
));
}
finally
{
if
(
jobClient
!=
null
)
{
...
...
@@ -917,6 +907,8 @@ public class FailingJobITCase {
jobClient
.
submitJobAndWait
();
}
catch
(
IOException
ioe
)
{
fail
(
StringUtils
.
stringifyException
(
ioe
));
}
catch
(
InterruptedException
ie
)
{
fail
(
StringUtils
.
stringifyException
(
ie
));
}
catch
(
JobExecutionException
e
)
{
// This is expected here
assert
(
e
.
isJobCanceledByUser
()
==
false
);
...
...
@@ -995,9 +987,7 @@ public class FailingJobITCase {
try
{
jobClient
=
new
JobClient
(
jobGraph
,
configuration
);
jobClient
.
submitJobAndWait
();
}
catch
(
IOException
ioe
)
{
fail
(
StringUtils
.
stringifyException
(
ioe
));
}
catch
(
JobExecutionException
e
)
{
}
catch
(
Exception
e
)
{
fail
(
StringUtils
.
stringifyException
(
e
));
}
finally
{
if
(
jobClient
!=
null
)
{
...
...
@@ -1070,9 +1060,7 @@ public class FailingJobITCase {
try
{
jobClient
=
new
JobClient
(
jobGraph
,
configuration
);
jobClient
.
submitJobAndWait
();
}
catch
(
IOException
ioe
)
{
fail
(
StringUtils
.
stringifyException
(
ioe
));
}
catch
(
JobExecutionException
e
)
{
}
catch
(
Exception
e
)
{
fail
(
StringUtils
.
stringifyException
(
e
));
}
finally
{
if
(
jobClient
!=
null
)
{
...
...
nephele/nephele-server/src/test/java/eu/stratosphere/nephele/jobmanager/JobManagerITCase.java
浏览文件 @
0df34948
...
...
@@ -291,15 +291,9 @@ public class JobManagerITCase {
bufferedReader
.
close
();
}
catch
(
NumberFormat
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
fail
(
e
.
getMessage
());
}
catch
(
JobExecutionException
e
)
{
e
.
printStackTrace
();
fail
(
e
.
getMessage
());
}
catch
(
IOException
ioe
)
{
ioe
.
printStackTrace
();
fail
(
ioe
.
getMessage
());
}
finally
{
// Remove temporary files
if
(
inputFile1
!=
null
)
{
...
...
@@ -396,6 +390,8 @@ public class JobManagerITCase {
fail
(
jgde
.
getMessage
());
}
catch
(
IOException
ioe
)
{
fail
(
ioe
.
getMessage
());
}
catch
(
InterruptedException
ie
)
{
fail
(
ie
.
getMessage
());
}
finally
{
// Remove temporary files
...
...
@@ -486,6 +482,8 @@ public class JobManagerITCase {
fail
(
jgde
.
getMessage
());
}
catch
(
IOException
ioe
)
{
fail
(
ioe
.
getMessage
());
}
catch
(
InterruptedException
ie
)
{
fail
(
ie
.
getMessage
());
}
finally
{
// Remove temporary files
...
...
@@ -587,6 +585,8 @@ public class JobManagerITCase {
}
catch
(
IOException
ioe
)
{
ioe
.
printStackTrace
();
fail
(
ioe
.
getMessage
());
}
catch
(
InterruptedException
ie
)
{
fail
(
ie
.
getMessage
());
}
finally
{
if
(
jobClient
!=
null
)
{
jobClient
.
close
();
...
...
@@ -607,6 +607,9 @@ public class JobManagerITCase {
private
void
test
(
final
int
limit
)
{
JobClient
jobClient
=
null
;
File
inputFile
=
null
;
File
outputFile
=
null
;
File
jarFile
=
null
;
try
{
...
...
@@ -614,10 +617,10 @@ public class JobManagerITCase {
final
String
forwardClassName
=
ForwardTask
.
class
.
getSimpleName
();
// Create input and jar files
final
File
inputFile
=
ServerTestUtils
.
createInputFile
(
limit
);
final
File
outputFile
=
new
File
(
ServerTestUtils
.
getTempDir
()
+
File
.
separator
inputFile
=
ServerTestUtils
.
createInputFile
(
limit
);
outputFile
=
new
File
(
ServerTestUtils
.
getTempDir
()
+
File
.
separator
+
ServerTestUtils
.
getRandomFilename
());
final
File
jarFile
=
ServerTestUtils
.
createJarFile
(
forwardClassName
);
jarFile
=
ServerTestUtils
.
createJarFile
(
forwardClassName
);
// Create job graph
final
JobGraph
jg
=
new
JobGraph
(
"Job Graph 1"
);
...
...
@@ -678,15 +681,26 @@ public class JobManagerITCase {
bufferedReader
.
close
();
// Remove temporary files
inputFile
.
delete
();
outputFile
.
delete
();
jarFile
.
delete
();
}
catch
(
IOException
ioe
)
{
ioe
.
printStackTrace
();
fail
(
ioe
.
getMessage
());
}
catch
(
InterruptedException
ie
)
{
fail
(
ie
.
getMessage
());
}
finally
{
// Remove temporary files
if
(
inputFile
!=
null
)
{
inputFile
.
delete
();
}
if
(
outputFile
!=
null
)
{
outputFile
.
delete
();
}
if
(
jarFile
!=
null
)
{
jarFile
.
delete
();
}
if
(
jobClient
!=
null
)
{
jobClient
.
close
();
}
...
...
@@ -749,12 +763,8 @@ public class JobManagerITCase {
jobClient
.
submitJobAndWait
();
}
catch
(
JobExecution
Exception
e
)
{
}
catch
(
Exception
e
)
{
fail
(
e
.
getMessage
());
}
catch
(
JobGraphDefinitionException
jgde
)
{
fail
(
jgde
.
getMessage
());
}
catch
(
IOException
ioe
)
{
fail
(
ioe
.
getMessage
());
}
finally
{
// Remove temporary files
...
...
@@ -821,12 +831,8 @@ public class JobManagerITCase {
jobClient
=
new
JobClient
(
jg
,
configuration
);
jobClient
.
submitJobAndWait
();
}
catch
(
JobExecution
Exception
e
)
{
}
catch
(
Exception
e
)
{
fail
(
e
.
getMessage
());
}
catch
(
JobGraphDefinitionException
jgde
)
{
fail
(
jgde
.
getMessage
());
}
catch
(
IOException
ioe
)
{
fail
(
ioe
.
getMessage
());
}
finally
{
// Remove temporary files
...
...
@@ -981,6 +987,8 @@ public class JobManagerITCase {
fail
(
jgde
.
getMessage
());
}
catch
(
IOException
ioe
)
{
fail
(
ioe
.
getMessage
());
}
catch
(
InterruptedException
ie
)
{
fail
(
ie
.
getMessage
());
}
finally
{
// Remove temporary files
...
...
@@ -1092,6 +1100,8 @@ public class JobManagerITCase {
fail
(
jgde
.
getMessage
());
}
catch
(
IOException
ioe
)
{
fail
(
ioe
.
getMessage
());
}
catch
(
InterruptedException
ie
)
{
fail
(
ie
.
getMessage
());
}
finally
{
// Remove temporary files
...
...
nephele/nephele-visualization/src/main/java/eu/stratosphere/nephele/visualization/swt/SWTVisualization.java
浏览文件 @
0df34948
...
...
@@ -90,7 +90,7 @@ public class SWTVisualization {
// Get the query interval
queryInterval
=
jobManager
.
getRecommendedPollingInterval
();
}
catch
(
IO
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
rpcService
.
shutDown
();
System
.
exit
(
1
);
...
...
nephele/nephele-visualization/src/main/java/eu/stratosphere/nephele/visualization/swt/SWTVisualizationGUI.java
浏览文件 @
0df34948
...
...
@@ -864,6 +864,8 @@ public class SWTVisualizationGUI implements SelectionListener, Runnable {
msgBox
.
setText
(
"Canceling job "
+
visualizationData
.
getJobID
()
+
" failed"
);
msgBox
.
setMessage
(
"Canceling job "
+
visualizationData
.
getJobID
()
+
" failed:\r\n\r\n"
+
ioe
.
getMessage
());
}
catch
(
InterruptedException
ie
)
{
return
;
}
}
...
...
pact/pact-clients/src/main/java/eu/stratosphere/pact/client/nephele/api/Client.java
浏览文件 @
0df34948
...
...
@@ -266,6 +266,9 @@ public class Client {
throw
new
ProgramInvocationException
(
"The program execution failed: "
+
jex
.
getMessage
());
}
}
catch
(
InterruptedException
ie
)
{
throw
new
ProgramInvocationException
(
"The program has been interrupted: "
+
ie
.
getMessage
());
}
finally
{
program
.
deleteExtractedLibraries
();
}
...
...
pact/pact-clients/src/main/java/eu/stratosphere/pact/testing/TestPlan.java
浏览文件 @
0df34948
...
...
@@ -683,6 +683,8 @@ public class TestPlan implements Closeable {
e1
.
printStackTrace
();
}
catch
(
JobExecutionException
e1
)
{
e1
.
printStackTrace
();
}
catch
(
InterruptedException
e1
)
{
e1
.
printStackTrace
();
}
try
{
...
...
pact/pact-clients/src/test/java/eu/stratosphere/pact/client/nephele/api/ClientTest.java
浏览文件 @
0df34948
...
...
@@ -108,7 +108,7 @@ public class ClientTest {
}
@Test
public
void
shouldSubmitToJobClient
()
throws
ProgramInvocationException
,
ErrorInPlanAssemblerException
,
IOException
public
void
shouldSubmitToJobClient
()
throws
ProgramInvocationException
,
ErrorInPlanAssemblerException
,
IOException
,
InterruptedException
{
when
(
jobSubmissionResultMock
.
getReturnCode
()).
thenReturn
(
ReturnCode
.
SUCCESS
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录