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

Drop custom code for String deduplication inside URI class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      We have class https://github.com/apache/hive/blob/master/common/src/java/org/apache/hadoop/hive/common/StringInternUtils.java to do String.intern() inside the URI class via reflection.

      Instead, we can recommend using newer java and enabling String deduplication 

      https://localcoder.org/is-string-deduplication-feature-of-the-g1-garbage-collector-enabled-by-default

      -XX:+UseG1GC -XX:+UseStringDeduplication

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              slachiewicz Sylwester Lachiewicz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: