Bug 5873 - If a program doesn't sent output for 1/2 second it will be terminated
: If a program doesn't sent output for 1/2 second it will be terminated
Status: RESOLVED FIXED
: gRAVI
gRAVI
: 1.1
: All All
: P3 critical
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-02-18 18:03 by
Modified: 2008-03-13 16:34 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-02-18 18:03:36
I ran a quick test just to confirm I was reading the code correctly
(non-blocking non-gram). 


========================================

$ cat HelloWorld1203053826788/output
START: .1
END: .1
START: .2
END: .2
START: .3
$ cat HelloWorld1203053826788/output
cat: HelloWorld1203053826788/output: No such file or directory


$ cat /tmp/output_test.sh
#!/bin/sh

for i in .1 .2 .3 .4 .5 .6 .7 .8 .9 1 ; do
   echo "START: $i"
   sleep $i
   echo "END: $i"
done


========================================

Attempting to execute....
Directory created: HelloWorld1203053826788
Command: /tmp/output_test.sh
Command Executed
Wrote process output data of 46 bytes
Output data written to: HelloWorld1203053826788/output
Trying to get resource
ResourceKey:
{http://helloworld.introduce.cagrid.org/HelloWorld/Context}HelloWorldResultResourceResultsKey=0bd47360-db88-11dc-b706-bd9cac3d6b18
(ResultResourceImpl) getStatus - IllegalThreadState (means process is still
running) java.lang.IllegalThreadStateException: process hasn't exited
Got output data of 46 bytes
Total output data size is 46 bytes
Sending encoded output data of 64 bytes
Destroying resource - ending process and removing working directory
Destroy Process
Deleting directory HelloWorld1203053826788

========================================