Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.18
-
None
-
None
Description
- Due to an 0 byte input file upload tan expected output file is not generated in the application execution.
- The airavata tries to transfer the file an error is thrown as the file is not existing.
- But a 0 byte output file is created in the gateway data storage and user can view it.
- Exception is thrown [1]
- If a specified output file is not in the working directory, it should be ignored, not create an empty file in the storage
- If a 0 byte file exists in the working directory it should be transferred to the storage.
[1]
org.apache.airavata.agents.api.AgentException: java.io.FileNotFoundException: /tmp/PROCESS_ac1064b1-226e-491c-91e6-303448f05f16/temp_inputs/Gaussian.log (No such file or directory) at org.apache.airavata.helix.agent.ssh.SshAgentAdaptor.copyFileTo(SshAgentAdaptor.java:307) at org.apache.airavata.helix.agent.storage.StorageResourceAdaptorImpl.uploadFile(StorageResourceAdaptorImpl.java:98) at org.apache.airavata.helix.impl.task.staging.DataStagingTask.transferFileToStorage(DataStagingTask.java:158) at org.apache.airavata.helix.impl.task.staging.OutputDataStagingTask.onRun(OutputDataStagingTask.java:163) at org.apache.airavata.helix.impl.task.AiravataTask.onRun(AiravataTask.java:265) at org.apache.airavata.helix.core.AbstractTask.run(AbstractTask.java:82) at org.apache.helix.task.TaskRunner.run(TaskRunner.java:70) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.FileNotFoundException: /tmp/PROCESS_ac1064b1-226e-491c-91e6-303448f05f16/temp_inputs/Gaussian.log (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.(FileInputStream.java:138) at java.io.FileInputStream.(FileInputStream.java:93) at org.apache.airavata.helix.agent.ssh.SshAgentAdaptor.copyFileTo(SshAgentAdaptor.java:276) ... 13 more