You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2018/04/06 15:06:10 UTC
[airavata] branch develop updated: Failing input data staging if
the file size is 0
This is an automated email from the ASF dual-hosted git repository.
dimuthuupe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/develop by this push:
new 0f07123 Failing input data staging if the file size is 0
0f07123 is described below
commit 0f0712382a9ce124a90939c247d2f352510e350b
Author: dimuthu <di...@gmail.com>
AuthorDate: Fri Apr 6 11:05:58 2018 -0400
Failing input data staging if the file size is 0
---
.../apache/airavata/helix/impl/task/staging/InputDataStagingTask.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/staging/InputDataStagingTask.java b/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/staging/InputDataStagingTask.java
index 4a8a307..71e6a54 100644
--- a/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/staging/InputDataStagingTask.java
+++ b/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/staging/InputDataStagingTask.java
@@ -106,8 +106,8 @@ public class InputDataStagingTask extends DataStagingTask {
File localFile = new File(localSourceFilePath);
if (localFile.exists()) {
if (localFile.length() == 0) {
- logger.warn("Local file " + localSourceFilePath +" size is 0 so ignoring the upload");
- return onSuccess("Input staging has skipped as file size is 0");
+ logger.error("Local file " + localSourceFilePath +" size is 0 so ignoring the upload");
+ return onFail("Input staging has failed as file " + localSourceFilePath + " size is 0", true, null);
}
} else {
throw new TaskOnFailException("Local file does not exist at " + localSourceFilePath, true, null);
--
To stop receiving notification emails like this one, please contact
dimuthuupe@apache.org.