Impala Public Jenkins has submitted this change and it was merged. ( 
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
Reviewed-on: http://gerrit.cloudera.org:8080/14549
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
---
M fe/src/main/java/org/apache/impala/catalog/CatalogServiceCatalog.java
M fe/src/main/java/org/apache/impala/catalog/events/MetastoreEvents.java
M 
fe/src/test/java/org/apache/impala/catalog/events/MetastoreEventsProcessorTest.java
3 files changed, 42 insertions(+), 17 deletions(-)

Approvals:
  Impala Public Jenkins: Looks good to me, approved; Verified

--
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: merged
Gerrit-Change-Id: I5bf46a75cd872aba268e15dd7c02c2cb46d64890
Gerrit-Change-Number: 14549
Gerrit-PatchSet: 5
Gerrit-Owner: Anurag Mantripragada <[email protected]>
Gerrit-Reviewer: Anurag Mantripragada <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>

Reply via email to