Description
Locations: src\java\org\apache\nutch\crawl\WebTableReader.java
when using function waitForCompletion in a try block, exceptions are not handled :
waitForCompletion might throw : IOException, InterruptedException, ClassNotFoundException
so when calling this function in a try block, we should use a catch block to handle potential Exceptions.
public Map<String, Object> run(Map<String, Object> args) throws Exception {
...
try
finally {
ToolUtil.recordJobStatus(null, currentJob, results);
if (!currentJob.isSuccessful())
}
...
}
Attachments
Issue Links
- is related to
-
NUTCH-2442 Injector to stop if job fails to avoid loss of CrawlDb
- Closed