EMsnap commented on a change in pull request #3319:
URL: https://github.com/apache/incubator-inlong/pull/3319#discussion_r832794981
##########
File path:
inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/task/TaskPositionManager.java
##########
@@ -91,13 +97,15 @@ private Runnable taskPositionFlushThread() {
JobProfile jobProfile = jobConfDb.getJobById(jobId);
if (jobProfile == null) {
LOGGER.warn("jobProfile {} cannot be found in db, "
- + "might be deleted by standalone mode, now
delete job position in memory", jobId);
+ + "might be deleted by standalone mode,
now delete job position in memory", jobId);
deleteJobPosition(jobId);
continue;
}
flushJobProfile(jobId, jobProfile);
}
- TimeUnit.SECONDS.sleep(DEFAULT_FLUSH_TIMEOUT);
+ int flushTime = conf.getInt(AGENT_HEARTBEAT_INTERVAL,
+ DEFAULT_AGENT_FETCHER_INTERVAL);
Review comment:
Here the fetcher timeout may be inconsistant with the code
--
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]