Vihang Karajgaonkar has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/14049


Change subject: IMPALA-8847: Ignore add partition events with empty partition 
list
......................................................................

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
---
M fe/src/main/java/org/apache/impala/catalog/events/MetastoreEvents.java
M tests/custom_cluster/test_event_processing.py
A tests/util/event_processor_utils.py
3 files changed, 162 insertions(+), 10 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/49/14049/2
--
To view, visit http://gerrit.cloudera.org:8080/14049
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I877ce6233934e7090cd18e497f748bc6479838cb
Gerrit-Change-Number: 14049
Gerrit-PatchSet: 2
Gerrit-Owner: Vihang Karajgaonkar <vih...@cloudera.com>

Reply via email to