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

Java npe when adding a partition which already exists

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Repro:

      create external table if not exists at (
      id string, bool_col string, i string, s string, ic string, bi string, f string, d string, da string, sc string, ts string) 
      partitioned by (year int, month int) 
      location '/test-warehouse/alltypesrror';
      

      and do this twice:

      alter table at add if not exists partition (year=2000, month=1);
      
      E0524 10:28:53.734863 29263 ImpaladCatalog.java:134] Error adding catalog object: null
      Java exception follows:
      java.lang.NullPointerException
      	at com.cloudera.impala.catalog.ImpaladCatalog.addTable(ImpaladCatalog.java:350)
      	at com.cloudera.impala.catalog.ImpaladCatalog.addCatalogObject(ImpaladCatalog.java:246)
      	at com.cloudera.impala.catalog.ImpaladCatalog.updateCatalog(ImpaladCatalog.java:132)
      	at com.cloudera.impala.service.Frontend.updateCatalogCache(Frontend.java:227)
      	at com.cloudera.impala.service.JniFrontend.updateCatalogCache(JniFrontend.java:161)
      

      I think impalad does not handle catalog update response 100% correctly, but this should not affect any other queries. (everything is fine)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bikramjeet.vig_impala_ca6f Bikramjeet Vig
            HuaisiXu Huaisi Xu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment