Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-1987 Fix existing findbugs warnings
  3. OOZIE-2938

Fix Findbugs warnings in oozie-sharelib-hive module

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0b1
    • build
    • None

    Description

      Currently Findbugs complains about the following warnings in the oozie-sharelib-hive module:

      [INFO] Found reliance on default encoding in org.apache.oozie.action.hadoop.HiveMain.readStringFromFile(String): new java.io.FileReader(String) [org.apache.oozie.action.hadoop.HiveMain] At HiveMain.java:[line 336]
      [INFO] org.apache.oozie.action.hadoop.HiveMain.setUpHiveSite() may fail to clean up java.io.OutputStream on checked exception [org.apache.oozie.action.hadoop.HiveMain, org.apache.oozie.action.hadoop.HiveMain] Obligation to clean up resource created at HiveMain.java:[line 184] is not dischargedPath continues at HiveMain.java:[line 185]
      [INFO] org.apache.oozie.action.hadoop.HiveMain.setUpHiveSite() may fail to close stream on exception [org.apache.oozie.action.hadoop.HiveMain] At HiveMain.java:[line 184]
      

      They should be fixed to get the code more reliable.

      Attachments

        1. OOZIE-2938-1.patch
          2 kB
          Jan Hentschel

        Issue Links

          Activity

            People

              janh Jan Hentschel
              janh Jan Hentschel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: