Lei Sun created GOBBLIN-595:
-------------------------------
Summary: Filter non-jar file in addJar method
Key: GOBBLIN-595
URL: https://issues.apache.org/jira/browse/GOBBLIN-595
Project: Apache Gobblin
Issue Type: Improvement
Reporter: Lei Sun
Assignee: Lei Sun
In the addJar method, we use file length to monitor if the uploading is
in-progress or completed. And we don't overwrite existing file since there are
multiple gobblin instance sharing the same directory.
However consider the case:
There's a file named as FILE, and it has been uploaded before on a sharedJar
file path, in the path of hdfs:///tmp/FILE. When we compare them and saw length
difference, we just regarded it in the process of uploading. But this is not
true obviously especially for log file (file name stay the same after we append
more logs into it), except that for .jar file whenever there's updates, the
file name will be updated with version number. But since this uploading is
supposed to be for .jar file only, we could bypass it by only accepting .jar
file.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)