Anurag Mantripragada has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/14549


Change subject: IMPALA-9095: Alter table events generated by renames should 
apply renames properly.
......................................................................

IMPALA-9095: Alter table events generated by renames should apply renames
properly.

A recent change refactored alter table event handler for rename operations
which introduced a bug that causes renames to a different db to be applied
incorrectly to the same db. This change adds a check to see if both the old
db and the new db are in catalog and applies the change to newdb properly.

Testing:
1. We did not have a rename testcase that crossed a single db. Added a test
   case for renaming to a different db.
2. Ran MetastoreEventsProcessorTests.

Change-Id: I5bf46a75cd872aba268e15dd7c02c2cb46d64890
---
M fe/src/main/java/org/apache/impala/catalog/CatalogServiceCatalog.java
M 
fe/src/test/java/org/apache/impala/catalog/events/MetastoreEventsProcessorTest.java
2 files changed, 35 insertions(+), 14 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5bf46a75cd872aba268e15dd7c02c2cb46d64890
Gerrit-Change-Number: 14549
Gerrit-PatchSet: 1
Gerrit-Owner: Anurag Mantripragada <anu...@cloudera.com>

Reply via email to