This is an automated email from the ASF dual-hosted git repository.

zabetak pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new e7cdc0cac93 HIVE-28929: TestEmbeddedHiveMetaStore#testAlterTable fails 
while trying to create managed directory (#5785)
e7cdc0cac93 is described below

commit e7cdc0cac935b8e2c573edad9d6e790d8beeee40
Author: Stamatis Zampetakis <[email protected]>
AuthorDate: Wed Apr 30 10:10:28 2025 +0300

    HIVE-28929: TestEmbeddedHiveMetaStore#testAlterTable fails while trying to 
create managed directory (#5785)
    
    The TestEmbeddedHiveMetaStore test runs fine when it is launched 
individually, but it fails on some CI runs cause it conflicts with state from 
TestMetastoreTransformer. The two tests are trying to create a directory for 
the database at the same path which leads to failures.
---
 .../org/apache/hadoop/hive/metastore/TestMetastoreTransformer.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestMetastoreTransformer.java
 
b/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestMetastoreTransformer.java
index 664403e0946..bca9afe4fbe 100644
--- 
a/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestMetastoreTransformer.java
+++ 
b/standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestMetastoreTransformer.java
@@ -103,8 +103,8 @@ public void testAlterTableIsCaseInSensitive() throws 
Exception {
     client.dropTable(dbName, tblName);
     silentDropDatabase(dbName);
 
-    String dbLocation = MetastoreConf.getVar(conf, 
ConfVars.WAREHOUSE_EXTERNAL) + "/_testDB_table_create_";
-    String mgdLocation = MetastoreConf.getVar(conf, ConfVars.WAREHOUSE) + 
"/_testDB_table_create_";
+    String dbLocation = MetastoreConf.getVar(conf, 
ConfVars.WAREHOUSE_EXTERNAL) + "/testAlterTableIsCaseInSensitive";
+    String mgdLocation = MetastoreConf.getVar(conf, ConfVars.WAREHOUSE) + 
"/testAlterTableIsCaseInSensitive";
     new 
DatabaseBuilder().setName(dbName).setLocation(dbLocation).setManagedLocation(mgdLocation).create(client,
 conf);
 
     ArrayList<FieldSchema> invCols = new ArrayList<>(2);

Reply via email to