[ 
https://issues.apache.org/jira/browse/IMPALA-8847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16908104#comment-16908104
 ] 

ASF subversion and git services commented on IMPALA-8847:
---------------------------------------------------------

Commit 0ff4f450e3f76eb3ac8622588fe0824e367c2b03 in impala's branch 
refs/heads/master from Vihang Karajgaonkar
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=0ff4f45 ]

IMPALA-8847: Ignore add partition events with empty partition list

Certain Hive queries like "alter table <table> add if not exists
partition (<part_spec>)" generate a add_partition event even if the
partition did not really exists. Such events have a empty partition list
in the event message which trips on the Precondition check in the
AddPartitionEvent. This causes event processor to go into error state.
The only way to recover is to issue invalidate metadata in such a case.

The patch adds logic to ignore such events.

Testing:
1. Added a test case which reproduces the issue. The test case works
after the patch is applied.

Change-Id: I877ce6233934e7090cd18e497f748bc6479838cb
Reviewed-on: http://gerrit.cloudera.org:8080/14049
Tested-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Vihang Karajgaonkar <[email protected]>


> Add partition events may contain empty partition object list
> ------------------------------------------------------------
>
>                 Key: IMPALA-8847
>                 URL: https://issues.apache.org/jira/browse/IMPALA-8847
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Vihang Karajgaonkar
>            Assignee: Vihang Karajgaonkar
>            Priority: Major
>
> When event polling is ON and when an external application like Hive issues a 
> {{alter table <table> add if not exists partition (<partspec>)}} it is 
> possble that command did not add a partition since it is preexisting. 
> However, metastore still generates a ADD_PARTITION event in such a case with 
> empty list of added partitions. Such events cause a Precondition to fail 
> while processing on the EventsProcessor side and event polling goes into 
> error state.
> The fix would be simple. Ignore such events.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to