[ https://issues.apache.org/jira/browse/HIVE-17008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16075763#comment-16075763 ]
Mohit Sabharwal commented on HIVE-17008: ---------------------------------------- Thanks, [~dan_impala_9180]. There are two flavors of listeners in each DDL operation, one which runs in the same transaction as the DDL event (notify only upon success) and one which run outside the transaction (can notify failed DDL operations as well). Where exactly is the NPE - I assume somewhere down the notifyEvent stack ? + [~spena], who has worked on this recently. > HiveMetastore.drop_database can return NPE if database does not exist > --------------------------------------------------------------------- > > Key: HIVE-17008 > URL: https://issues.apache.org/jira/browse/HIVE-17008 > Project: Hive > Issue Type: Bug > Components: Metastore > Reporter: Dan Burkert > Assignee: Dan Burkert > Attachments: HIVE-17008.0.patch > > > When dropping a non-existent database, the HMS will still fire registered > {{DROP_DATABASE}} event listeners. This results in an NPE when the listeners > attempt to deref the {{null}} database parameter. -- This message was sent by Atlassian JIRA (v6.4.14#64029)