[
https://issues.apache.org/jira/browse/NUTCH-2568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16439202#comment-16439202
]
ASF GitHub Bot commented on NUTCH-2568:
---------------------------------------
Omkar20895 opened a new pull request #318: NUTCH-2568 Adding error log in
NutchJob.cleanupAfterFailure()
URL: https://github.com/apache/nutch/pull/318
As suggested by @HansBrende
- Added LOG.error in NutchJob.cleanupAfterFailure() sub-routine.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Caught exception is immediately rethrown
> ----------------------------------------
>
> Key: NUTCH-2568
> URL: https://issues.apache.org/jira/browse/NUTCH-2568
> Project: Nutch
> Issue Type: Bug
> Components: util
> Affects Versions: 1.15
> Reporter: Hans Brende
> Priority: Minor
> Fix For: 1.15
>
>
> {{NutchJob.cleanupAfterFailure()}} catches an IOException and immediately
> rethrows it without logging it. Either remove the try-catch block, or do
> something with the exception, e.g., log it.
> Relevant line of code:
> https://github.com/apache/nutch/blob/4c3fb71208a29e1e49201002bda08499a14b443d/src/java/org/apache/nutch/util/NutchJob.java#L50
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)