Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-5963

unnecessary exception catch in NNBench

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.21.0
    • test
    • None
    • Reviewed

    Description

      NNBench.createControlFiles - catches Exception (even though only IOException is thrown) and then throws a new IOException with message from original. This seems unnecessary and lossfull, because we loose stack info form the original exception.

      Suggestion - remove the catch part of try block.

      Attachments

        1. Hadoop-5963.patch
          0.7 kB
          Boris Shkolnik

        Activity

          People

            boryas Boris Shkolnik
            boryas Boris Shkolnik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: