Skip to content

Commit

Permalink
[Enhancement](multi-catalog) Speed up consume rate of hms event.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxiangyu committed Dec 2, 2023
1 parent 62da40b commit 4981e1a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,11 @@ public void createExternalTableFromEvent(String dbName, String tableName,
db.writeLock();
try {
((HMSExternalDatabase) db).createTable(tableName, tblId);
((HMSExternalDatabase) db).setLastUpdateTime(updateTime);
((HMSExternalDatabase) db).setLastUpdateTime(System.currentTimeMillis());
table = db.getTableNullable(tableName);
if (table != null) {
((HMSExternalTable) table).setEventUpdateTime(updateTime);
}
} finally {
db.writeUnlock();
}
Expand Down

0 comments on commit 4981e1a

Please sign in to comment.