Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-23979

Resolve spotbugs errors in JsonReporter.java, Metrics.java, and PerfLogger.java

    XMLWordPrintableJSON

Details

    Description

      Resolve these spotbugs errors:
      [ERROR] Found reliance on default encoding in org.apache.hadoop.hive.metastore.metrics.JsonReporter.report(SortedMap, SortedMap, SortedMap, SortedMap, SortedMap): new java.io.FileWriter(File) [org.apache.hadoop.hive.metastore.metrics.JsonReporter] At JsonReporter.java:[line 159] DM_DEFAULT_ENCODING

      [ERROR] Incorrect lazy initialization of static field org.apache.hadoop.hive.metastore.metrics.Metrics.self in org.apache.hadoop.hive.metastore.metrics.Metrics.shutdown() [org.apache.hadoop.hive.metastore.metrics.Metrics] At Metrics.java:[lines 79-85] LI_LAZY_INIT_STATIC

      [ERROR] The method name org.apache.hadoop.hive.metastore.metrics.PerfLogger.PerfLogBegin(String, String) doesn't start with a lower case letter [org.apache.hadoop.hive.metastore.metrics.PerfLogger] At PerfLogger.java:[lines 92-98] NM_METHOD_NAMING_CONVENTION

      [ERROR] The method name org.apache.hadoop.hive.metastore.metrics.PerfLogger.PerfLogEnd(String, String) doesn't start with a lower case letter [org.apache.hadoop.hive.metastore.metrics.PerfLogger] At PerfLogger.java:[line 106] NM_METHOD_NAMING_CONVENTION

      [ERROR] The method name org.apache.hadoop.hive.metastore.metrics.PerfLogger.PerfLogEnd(String, String, String) doesn't start with a lower case letter [org.apache.hadoop.hive.metastore.metrics.PerfLogger] At PerfLogger.java:[lines 116-138] NM_METHOD_NAMING_CONVENTION

      Attachments

        Issue Links

          Activity

            People

              soumyakanti.das Soumyakanti Das
              soumyakanti.das Soumyakanti Das
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m