homatthew commented on code in PR #4030: URL: https://github.com/apache/gobblin/pull/4030#discussion_r1728046675
########## gobblin-runtime/src/main/java/org/apache/gobblin/runtime/mapreduce/MRJobLauncher.java: ########## @@ -572,56 +573,22 @@ private void addJars(Path jarFileDir, String jarFileList, Configuration conf) th for (String jarFile : SPLITTER.split(jarFileList)) { Path srcJarFile = new Path(jarFile); FileStatus[] fileStatusList = lfs.globStatus(srcJarFile); - for (FileStatus status : fileStatusList) { + Path destJarFile = HdfsJarUploadUtils.calculateDestJarFile(fs, status, this.unsharedJarsDir, jarFileDir); // For each FileStatus there are chances it could fail in copying at the first attempt, due to file-existence // or file-copy is ongoing by other job instance since all Gobblin jobs share the same jar file directory. // the retryCount is to avoid cases (if any) where retry is going too far and causes job hanging. - int retryCount = 0; - boolean shouldFileBeAddedIntoDC = true; - Path destJarFile = calculateDestJarFile(status, jarFileDir); - // Adding destJarFile into HDFS until it exists and the size of file on targetPath matches the one on local path. - while (!this.fs.exists(destJarFile) || fs.getFileStatus(destJarFile).getLen() != status.getLen()) { - try { - if (this.fs.exists(destJarFile) && fs.getFileStatus(destJarFile).getLen() != status.getLen()) { - Thread.sleep(WAITING_TIME_ON_IMCOMPLETE_UPLOAD); Review Comment: This key seems unused now in this class. And might as well fix the typo in `HdfsJarUploadUtils` -- 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: dev-unsubscr...@gobblin.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org