You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "songwanging (JIRA)" <ji...@apache.org> on 2015/08/10 23:53:47 UTC
[jira] [Created] (NUTCH-2076) exceptions are not handled when using
method waitForCompletion in a try block
songwanging created NUTCH-2076:
----------------------------------
Summary: exceptions are not handled when using method waitForCompletion in a try block
Key: NUTCH-2076
URL: https://issues.apache.org/jira/browse/NUTCH-2076
Project: Nutch
Issue Type: Bug
Components: crawldb
Affects Versions: 2.3, 2.2
Reporter: songwanging
Priority: Minor
Locations: src\java\org\apache\nutch\crawl\WebTableReader.java
when using function waitForCompletion in a try block, exceptions are not handled :
public Map<String, Object> run(Map<String, Object> args) throws Exception {
...
try {
currentJob.waitForCompletion(true);
} finally {
ToolUtil.recordJobStatus(null, currentJob, results);
if (!currentJob.isSuccessful()) {
fileSystem.delete(tmpFolder, true);
return results;
}
}
...
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)