[improvement](multi-catalog)hms sync event log more info #19887

This commit is contained in:
zhangdong
2023-05-20 08:25:14 +08:00
committed by GitHub
parent 512806f902
commit 178d6cc529
9 changed files with 9 additions and 9 deletions

View File

@ -82,7 +82,7 @@ public class AddPartitionEvent extends MetastoreTableEvent {
.addExternalPartitions(catalogName, dbName, hmsTbl.getTableName(), partitionNames, true);
} catch (DdlException e) {
throw new MetastoreNotificationException(
debugString("Failed to process event"));
debugString("Failed to process event"), e);
}
}
}

View File

@ -91,7 +91,7 @@ public class AlterPartitionEvent extends MetastoreTableEvent {
}
} catch (DdlException e) {
throw new MetastoreNotificationException(
debugString("Failed to process event"));
debugString("Failed to process event"), e);
}
}
}

View File

@ -121,7 +121,7 @@ public class AlterTableEvent extends MetastoreTableEvent {
.refreshExternalTable(tableBefore.getDbName(), tableBefore.getTableName(), catalogName, true);
} catch (Exception e) {
throw new MetastoreNotificationException(
debugString("Failed to process event"));
debugString("Failed to process event"), e);
}
}
}

View File

@ -51,7 +51,7 @@ public class CreateDatabaseEvent extends MetastoreEvent {
.createExternalDatabase(dbName, catalogName, true);
} catch (DdlException e) {
throw new MetastoreNotificationException(
debugString("Failed to process event"));
debugString("Failed to process event"), e);
}
}
}

View File

@ -62,7 +62,7 @@ public class CreateTableEvent extends MetastoreTableEvent {
Env.getCurrentEnv().getCatalogMgr().createExternalTable(dbName, hmsTbl.getTableName(), catalogName, true);
} catch (DdlException e) {
throw new MetastoreNotificationException(
debugString("Failed to process event"));
debugString("Failed to process event"), e);
}
}
}

View File

@ -51,7 +51,7 @@ public class DropDatabaseEvent extends MetastoreEvent {
.dropExternalDatabase(dbName, catalogName, true);
} catch (DdlException e) {
throw new MetastoreNotificationException(
debugString("Failed to process event"));
debugString("Failed to process event"), e);
}
}
}

View File

@ -82,7 +82,7 @@ public class DropPartitionEvent extends MetastoreTableEvent {
.dropExternalPartitions(catalogName, dbName, hmsTbl.getTableName(), partitionNames, true);
} catch (DdlException e) {
throw new MetastoreNotificationException(
debugString("Failed to process event"));
debugString("Failed to process event"), e);
}
}
}

View File

@ -62,7 +62,7 @@ public class DropTableEvent extends MetastoreTableEvent {
Env.getCurrentEnv().getCatalogMgr().dropExternalTable(dbName, tableName, catalogName, true);
} catch (DdlException e) {
throw new MetastoreNotificationException(
debugString("Failed to process event"));
debugString("Failed to process event"), e);
}
}
}

View File

@ -69,7 +69,7 @@ public class InsertEvent extends MetastoreTableEvent {
Env.getCurrentEnv().getCatalogMgr().refreshExternalTable(dbName, tblName, catalogName, true);
} catch (DdlException e) {
throw new MetastoreNotificationException(
debugString("Failed to process event"));
debugString("Failed to process event"), e);
}
}
}