You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/08/19 08:18:16 UTC

[GitHub] [inlong] GanfengTan commented on a diff in pull request #5602: [INLONG-5601][Agent] Update the default triggering policy for file collection is FULL

GanfengTan commented on code in PR #5602:
URL: https://github.com/apache/inlong/pull/5602#discussion_r949926391


##########
inlong-agent/agent-core/src/main/java/org/apache/inlong/agent/core/trigger/TriggerManager.java:
##########
@@ -116,14 +116,18 @@ public boolean submitTrigger(TriggerProfile triggerProfile) {
     }
 
     /**
-     * Preprocessing before adding trigger
+     * Preprocessing before adding trigger, default value FULL
+     * 
+     * FULL: All directory by regex
+     * INCREMENT: Directory entry created 
      */
     public void preprocessTrigger(TriggerProfile profile) {
-        String syncType = profile.get(JobConstants.JOB_FILE_COLLECT_TYPE, "");
-        if (FileCollectType.FULL.equals(syncType)) {
-            LOGGER.info("Initialize submit full path. trigger {} ", profile.getTriggerId());
-            manager.getJobManager().submitFileJobProfile(profile);
+        String syncType = profile.get(JobConstants.JOB_FILE_COLLECT_TYPE, "FULL");

Review Comment:
   Thanks @healchow 



-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org