Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-19010 Improve column stats update
  3. HIVE-18986

Table rename will run java.lang.StackOverflowError in dataNucleus if the table contains large number of columns

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • Standalone Metastore
    • None
    • Added HMS configuration {{metastore.rawstore.batch.size}} to control batch size when executing the query using JDO. That will avoid the issues like StackOverflow if lots of objects such as column names are involved in the query.

    Description

      If the table contains a lot of columns e.g, 5k, simple table rename would fail with the following stack trace. The issue is datanucleus can't handle the query with lots of colName='c1' && colName='c2' && ... .

       

      2018-03-13 17:19:52,770 INFO org.apache.hadoop.hive.metastore.HiveMetaStore.audit: [pool-5-thread-200]: ugi=anonymous ip=10.17.100.135 cmd=source:10.17.100.135 alter_table: db=default tbl=fgv_full_var_pivoted02 newtbl=fgv_full_var_pivoted 2018-03-13 17:20:00,495 ERROR org.apache.hadoop.hive.metastore.RetryingHMSHandler: [pool-5-thread-200]: java.lang.StackOverflowError at org.datanucleus.store.rdbms.sql.SQLText.toSQL(SQLText.java:330) at org.datanucleus.store.rdbms.sql.SQLText.toSQL(SQLText.java:339) at org.datanucleus.store.rdbms.sql.SQLText.toSQL(SQLText.java:339) at org.datanucleus.store.rdbms.sql.SQLText.toSQL(SQLText.java:339) at org.datanucleus.store.rdbms.sql.SQLText.toSQL(SQLText.java:339)

       

      Attachments

        1. HIVE-18986.1.patch
          5 kB
          Aihua Xu
        2. HIVE-18986.2.patch
          14 kB
          Aihua Xu
        3. HIVE-18986.3.patch
          17 kB
          Aihua Xu
        4. HIVE-18986.4.patch
          19 kB
          Aihua Xu

        Issue Links

          Activity

            People

              aihuaxu Aihua Xu
              aihuaxu Aihua Xu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: