Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2568

Caught exception is immediately rethrown

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.15
    • 1.15
    • util
    • None

    Description

      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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            hansbrende Hans Brende
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment