Skip to content

Commit

Permalink
[BugFix] Fix an issue that can’t enable automatic incremental update …
Browse files Browse the repository at this point in the history
…for a single Hive catalog.
  • Loading branch information
zhangheihei committed Jun 10, 2024
1 parent c349de8 commit 63f6792
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ private void processEvents(List<NotificationEvent> events, String catalogName) {
@Override
protected void runAfterCatalogReady() {
List<String> catalogs = Lists.newArrayList(cacheUpdateProcessors.keySet());
if (catalogs.isEmpty()) {
return;
}
int resourceCatalogNum = (int) cacheUpdateProcessors.keySet().stream()
.filter(CatalogMgr.ResourceMappingCatalog::isResourceMappingCatalog).count();
int catalogNum = cacheUpdateProcessors.size() - resourceCatalogNum;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1357,9 +1357,7 @@ private void startAllNodeTypeDaemonThreads() {
// ES state store
esRepository.start();

if (Config.enable_hms_events_incremental_sync) {
metastoreEventsProcessor.start();
}
metastoreEventsProcessor.start();

connectorTableMetadataProcessor.start();

Expand Down

0 comments on commit 63f6792

Please sign in to comment.