Quanlong Huang created IMPALA-14203:
---------------------------------------
Summary: MetastoreEventsProcessorTest.testIgnoreNonDefaultCatalogs
fails when build on Apache Hive3
Key: IMPALA-14203
URL: https://issues.apache.org/jira/browse/IMPALA-14203
Project: IMPALA
Issue Type: Bug
Components: Catalog
Reporter: Quanlong Huang
Assignee: Quanlong Huang
The last assertion of the test fails when build on Apache Hive 3.
{code:java}
// assert that dbname and table in the default catalog exist
assertNotNull(catalog_.getDb(TEST_DB_NAME));
assertNotNull(catalog_.getTable(TEST_DB_NAME, tblName));
dropDatabaseCascade(catName, TEST_DB_NAME);
// when a catalog is created a default database is also created within it
dropDatabaseCascade(catName, "default");
dropHiveCatalogIfExists(catName);
eventsProcessor_.processEvents();
assertEquals(EventProcessorStatus.ACTIVE, eventsProcessor_.getStatus());
// assert that dbname and table in the default catalog exist
assertNotNull(catalog_.getDb(TEST_DB_NAME));
assertNotNull(catalog_.getTable(TEST_DB_NAME, tblName)); // <---- This
fails{code}
The test creates two tables using the same db and table names in two different
catalogs. Then drops the non-default catalog in Hive and verifies the db and
table in the default catalog still exists in the metadata cache.
It seems the table is dropped when dropping the db of another catalog. Might be
a bug of Hive 3.1.3 and fixed in later Hive versions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]