|
@@ -422,9 +422,7 @@ public class EtlServiceImpl implements EtlService {
|
|
|
|
|
|
File file = new File(filePath);
|
|
|
if (!file.exists() || file.length() <= 0) {
|
|
|
- String msg = String.format("download file from [%s] is empty.", fileUrl);
|
|
|
- metric(MetricTypeEnum.DOWNLOAD_FAILED, msg);
|
|
|
- throw new CommonException(ExceptionEnum.DATA_ERROR, msg);
|
|
|
+ throw new CommonException(ExceptionEnum.DATA_ERROR, String.format("download file from [%s] is empty.", fileUrl));
|
|
|
}
|
|
|
|
|
|
return relFileDir + File.separator + fileName;
|