You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2025/07/07 11:08:00 UTC

[jira] [Created] (IMPALA-14203) MetastoreEventsProcessorTest.testIgnoreNonDefaultCatalogs fails when build on Apache Hive3

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: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org