aloyszhang commented on code in PR #10190:
URL: https://github.com/apache/inlong/pull/10190#discussion_r1597787677
##########
inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/instance/InstanceManager.java:
##########
@@ -240,6 +241,10 @@ private void traverseMemoryTasksToDb() {
if (stateFromDb != InstanceStateEnum.DEFAULT) {
deleteFromMemory(instance.getInstanceId());
}
+ if (AgentUtils.getCurrentTime() - instance.getLastHeartbeatTime()
> INSTANCE_MAX_HEARTBEAT_GAP_MS) {
+ LOGGER.error("instance heartbeat timeout {} will delete from
memory", instance.getInstanceId());
Review Comment:
```suggestion
LOGGER.error("instance heartbeat timeout, id : {}, will be
deleted from memory", instance.getInstanceId());
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]