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

Upgrade log4j to 2.12.1

    XMLWordPrintableJSON

Details

    Description

      Hive's currently using log4j 2.10.0 and according to HIVE-21273, a number of issues are present in it, which can be resolved by upgrading to 2.12.1:

      Curly braces in parameters are treated as placeholders
      affectsVersions:2.8.2;2.9.0;2.10.0
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2032?filter=allopenissues
      Remove Log4J API dependency on Management APIs
      affectsVersions:2.9.1;2.10.0
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2126?filter=allopenissues
      Log4j2 throws NoClassDefFoundError in Java 9
      affectsVersions:2.10.0;2.11.0
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2129?filter=allopenissues
      ThreadContext map is cleared => entries are only available for one log event
      affectsVersions:2.10.0
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2158?filter=allopenissues
      Objects held in SortedArrayStringMap cannot be filtered during serialization
      affectsVersions:2.10.0
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2163?filter=allopenissues
      NullPointerException at org.apache.logging.log4j.util.Activator.loadProvider(Activator.java:81) in log4j 2.10.0
      affectsVersions:2.10.0
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2182?filter=allopenissues
      MarkerFilter onMismatch invalid attribute in .properties
      affectsVersions:2.10.0
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2202?filter=allopenissues
      Configuration builder classes should look for "onMismatch"; not "onMisMatch".
      affectsVersions:2.4;2.4.1;2.5;2.6;2.6.1;2.6.2;2.7;2.8;2.8.1;2.8.2;2.9.0;2.10.0
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2219?filter=allopenissues
      Empty Automatic-Module-Name Header
      affectsVersions:2.10.0;2.11.0;3.0.0
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2254?filter=allopenissues
      ConcurrentModificationException from org.apache.logging.log4j.status.StatusLogger.<clinit>(StatusLogger.java:71)
      affectsVersions:2.10.0
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2276?filter=allopenissues
      Allow SystemPropertiesPropertySource to run with a SecurityManager that rejects system property access
      affectsVersions:2.10.0
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2279?filter=allopenissues
      ParserConfigurationException when using Log4j with oracle.xml.jaxp.JXDocumentBuilderFactory
      affectsVersions:2.10.0
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2283?filter=allopenissues
      Log4j 2.10+not working with SLF4J 1.8 in OSGI environment
      affectsVersions:2.10.0;2.11.0
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2305?filter=allopenissues
      fix the CacheEntry map in ThrowableProxy#toExtendedStackTrace to be put and gotten with same key
      affectsVersions:2.6.2;2.7;2.8;2.8.1;2.8.2;2.9.0;2.9.1;2.10.0;2.11.0
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2389?filter=allopenissues
      NullPointerException when closing never used RollingRandomAccessFileAppender
      affectsVersions:2.10.0;2.11.1
      https://issues.apache.org/jira/projects/LOG4J2/issues/LOG4J2-2418?filter=allopenissues

      Attachments

        1. HIVE-22278.02.patch
          6 kB
          David Lavati
        2. HIVE-22278.02.patch
          6 kB
          David Lavati
        3. HIVE-22278.02.patch
          6 kB
          David Lavati
        4. HIVE-22278.02.patch
          6 kB
          David Lavati
        5. HIVE-22278.02.patch
          6 kB
          David Lavati
        6. HIVE-22278.patch
          4 kB
          David Lavati

        Issue Links

          Activity

            People

              dlavati David Lavati
              dlavati David Lavati
              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 - 20m
                  20m