Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions fe/fe-core/src/main/java/com/starrocks/common/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -1299,13 +1299,13 @@ public class Config extends ConfigBase {
/**
* If set to true, StarRocks will automatically synchronize hms metadata to the cache in fe.
*/
@ConfField(mutable = true)
@ConfField
public static boolean enable_hms_events_incremental_sync = false;

/**
* HMS polling interval in milliseconds.
*/
@ConfField(mutable = true)
@ConfField
public static int hms_events_polling_interval_ms = 5000;

/**
Expand All @@ -1323,7 +1323,7 @@ public class Config extends ConfigBase {
/**
* Num of thread to process events in parallel.
*/
@ConfField(mutable = true)
@ConfField
public static int hms_process_events_parallel_num = 4;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ private List<NotificationEvent> getNextHMSEvents(String resourceName,
if (response.getEvents().size() == 0) {
return Collections.emptyList();
}
LOG.info(String.format("Received %d events. Start event id : %d. Last synced id : %d",
response.getEvents().size(), response.getEvents().get(0).getEventId(), lastSyncedEventId));
LOG.info(String.format("Received %d events. Start event id : %d. Last synced id : %d on resource : %s",
response.getEvents().size(), response.getEvents().get(0).getEventId(),
lastSyncedEventId, resourceName));

if (filter == null) {
return response.getEvents();
Expand Down Expand Up @@ -323,6 +324,8 @@ private void processEvents(List<NotificationEvent> events, String resourceName)
return;
}

LOG.debug("Notification events {} to be processed", events);

if (Config.enable_hms_parallel_process_evens) {
doExecuteWithPartialProgress(filteredEvents);
} else {
Expand Down