[ https://issues.apache.org/jira/browse/IMPALA-8612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16874689#comment-16874689 ]
ASF subversion and git services commented on IMPALA-8612: --------------------------------------------------------- Commit e59e9261339a7a353c05548df84ff0d8793b768d in impala's branch refs/heads/master from Gabor Kaszab [ https://gitbox.apache.org/repos/asf?p=impala.git;h=e59e926 ] IMPALA-8612: Fix sporadic NPE when dropping an authorized table In the analyze() function of DropTableOrViewStmt it's possible that serverName_ is not set when analyzer.getTable() throws. As a result when the Catalog executes the drop table DDL it runs into a failing Precondition check and throws a NullPointerException when updating user privileges. Note, to run into the NPE it's required to have authorization enabled. Change-Id: I70bd7ca4796b24920ee156436bf8bbc682e7d952 Reviewed-on: http://gerrit.cloudera.org:8080/13508 Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> > NPE when DropTableOrViewStmt analysis leaves serverName_ NULL > ------------------------------------------------------------- > > Key: IMPALA-8612 > URL: https://issues.apache.org/jira/browse/IMPALA-8612 > Project: IMPALA > Issue Type: Bug > Components: Frontend > Affects Versions: Impala 2.12.0, Impala 3.2.0 > Reporter: Gabor Kaszab > Assignee: Gabor Kaszab > Priority: Critical > > This line is skipped when analyzer.getTable() throws few lines above: > https://github.com/apache/impala/blob/cd30949102425e28adadb51232653d910ac8422f/fe/src/main/java/org/apache/impala/analysis/DropTableOrViewStmt.java#L117 > As a result a drop table statement (with permissions ON) can throw > NullPointerException here: > https://github.com/apache/impala/blob/master/fe/src/main/java/org/apache/impala/authorization/sentry/SentryCatalogdAuthorizationManager.java#L381 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org For additional commands, e-mail: issues-all-h...@impala.apache.org