[improvement](multi-catalog)hms sync event log more info #19887
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user