[Swift-user] Problem in error handling for localhost jobs with status.mode=provider
Michael Wilde
wilde at mcs.anl.gov
Thu Jan 21 23:45:10 CST 2010
When running a job on localhost with status.mode=provider set in
swift.properties, missing-output-file error messages are lost.
You can replicate this error with this this script:
--
login2$ cat missingresult.swift
type file;
app (file f) echo()
{
echo "foo";
}
file f<"missing.txt">;
f = echo();
--
With status.mode not set, you get the expected error message, "The
following output files were not created by the application: missing.txt"
but with it set to "provider" you only get "Job failed with an exit code
of 254": (note that Ive got a bunch of debug messages below in _swiftwrap)
login2$ swift -config props missingresult.swift
Swift svn swift-r3202 cog-r2683
RunID: 20100121-2337-pn3jdg2c
Progress:
To TTY: exit code = 0
_swiftwrap: returned from checkError
_swiftwrap: exit step 1
_swiftwrap: exit step 2
_swiftwrap: exit step 3
_swiftwrap: exit step 4
_swiftwrap: exit step 5
checking for outfile missing.txt
jobs/j/echo-jlb3snmj/missing.txt is missing
The following output files were not created by the application: missing.txt
fail(254) logged message The following output files were not created by
the application: missing.txt
fail(254) logged info
Execution failed:
Exception in echo:
Arguments: [foo]
Host: localhost
Directory: missingresult-20100121-2337-pn3jdg2c/jobs/j/echo-jlb3snmj
stderr.txt:
stdout.txt: foo
----
Caused by:
Job failed with an exit code of 254
login2$
More information about the Swift-user
mailing list