Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-10765

IllegalStateException when inserting empty results to unpartitioned table with event processor enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 4.0.0
    • Impala 4.0.0, Impala 4.1.0
    • None
    • None
    • ghx-label-9

    Description

      Start impala cluster with event processor enabled:

      bin/start-impala-cluster.py --catalogd_args='--hms_event_polling_interval_s=1'

      Create an empty table and create another table based on it.

      [localhost:21050] default> create table empty_tbl(id int);
      Query: create table empty_tbl(id int)
      +-------------------------+
      | summary                 |
      +-------------------------+
      | Table has been created. |
      +-------------------------+
      Fetched 1 row(s) in 0.18s
      [localhost:21050] default> create table ctas_tbl as select * from empty_tbl;
      Query: create table ctas_tbl as select * from empty_tbl
      Query submitted at: 2021-06-23 20:40:35 (Coordinator: http://quanlong-OptiPlex-BJ:25000)
      Query progress can be monitored at: http://quanlong-OptiPlex-BJ:25000/query_plan?query_id=f3430a91b11bcdac:b804158800000000
      ERROR: IllegalStateException: null
      

      Logs of impalad:

      I0623 20:40:39.971030  4426 client-request-state.cc:1281] Updating metastore with 1 altered partitions ()
      I0623 20:40:39.971042  4426 client-request-state.cc:1310] Executing FinalizeDml() using CatalogService
      E0623 20:40:40.131408  4426 client-request-state.cc:1320] ERROR Finalizing DML: IllegalStateException: null 
      

      Logs of catalogd:

      I0623 20:40:39.987920  4439 HdfsTable.java:764] Loaded file and block metadata for default.ctas_tbl partitions: . Time taken: 812.439us
      I0623 20:40:39.988750  4439 TableLoader.java:103] Loaded metadata for: default.ctas_tbl (12ms)
      I0623 20:40:39.989748  4385 jni-util.cc:286] java.lang.IllegalStateException
              at com.google.common.base.Preconditions.checkState(Preconditions.java:492)
              at org.apache.impala.service.CatalogOpExecutor.createInsertEvents(CatalogOpExecutor.java:5056)
              at org.apache.impala.service.CatalogOpExecutor.updateCatalog(CatalogOpExecutor.java:4962)
              at org.apache.impala.service.JniCatalog.updateCatalog(JniCatalog.java:360)
      

      Attachments

        Issue Links

          Activity

            People

              stigahuang Quanlong Huang
              stigahuang Quanlong Huang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: