autumnust commented on a change in pull request #2701: GOBBLIN-846: Enhance 
LogCopier service to handle continuous YARN log …
URL: https://github.com/apache/incubator-gobblin/pull/2701#discussion_r312156450
 
 

 ##########
 File path: 
gobblin-utility/src/main/java/org/apache/gobblin/util/logs/LogCopier.java
 ##########
 @@ -178,53 +188,91 @@ protected Scheduler scheduler() {
     return Scheduler.newFixedRateSchedule(0, 
this.sourceLogFileMonitorInterval, this.timeUnit);
   }
 
+  private boolean shouldIncludeLogFile(FileStatus logFile) {
 
 Review comment:
   What happen if one thread pass the branch `if 
(copiedFileNames.contains(logFilePath.getName())) {`, and the other thread just 
add a file in `copiedFileNames `? 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to