[Swift-devel] [Bug 6] Not globally unique temporary file names

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Mon Nov 8 16:19:44 CST 2010


https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=6


skenny <skenny at uchicago.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |skenny at uchicago.edu




--- Comment #3 from skenny <skenny at uchicago.edu>  2010-11-08 16:19:44 ---
both instances produce 10 files:

[skenny at login2]$ cat t2_outnames.swift
type messagefile;

app (messagefile t) greeting(string s) {
    echo s stdout=@filename(t);
}

myprog() {
     messagefile outfile;
     outfile=greeting("this file");
 }

int idx[] = [1:10];

foreach i in idx {
     myprog();
 }


foreach i in idx {
     messagefile outfile;
     outfile = greeting("this file");
 }

[skenny at login2]$ swift t2_outnames.swift
Swift svn swift-r3680 cog-r2913

RunID: 20101108-1615-7j7nvdc9
Progress:
Progress:  Selecting site:18  Stage in:1  Finished successfully:1
...

[skenny at login2]$ ls _concurrent/
outfile-3976bc53-6010-41b4-adc2-823c3cb17d91-1-0 
outfile-7e53f096-cf13-4eea-b52c-ee0c341f03bf-2-0
outfile-3976bc53-6010-41b4-adc2-823c3cb17d91-1-1 
outfile-7e53f096-cf13-4eea-b52c-ee0c341f03bf-2-1
outfile-3976bc53-6010-41b4-adc2-823c3cb17d91-1-2 
outfile-7e53f096-cf13-4eea-b52c-ee0c341f03bf-2-2
outfile-3976bc53-6010-41b4-adc2-823c3cb17d91-1-3 
outfile-7e53f096-cf13-4eea-b52c-ee0c341f03bf-2-3
outfile-3976bc53-6010-41b4-adc2-823c3cb17d91-1-4 
outfile-7e53f096-cf13-4eea-b52c-ee0c341f03bf-2-4
outfile-3976bc53-6010-41b4-adc2-823c3cb17d91-1-5 
outfile-7e53f096-cf13-4eea-b52c-ee0c341f03bf-2-5
outfile-3976bc53-6010-41b4-adc2-823c3cb17d91-1-6 
outfile-7e53f096-cf13-4eea-b52c-ee0c341f03bf-2-6
outfile-3976bc53-6010-41b4-adc2-823c3cb17d91-1-7 
outfile-7e53f096-cf13-4eea-b52c-ee0c341f03bf-2-7
outfile-3976bc53-6010-41b4-adc2-823c3cb17d91-1-8 
outfile-7e53f096-cf13-4eea-b52c-ee0c341f03bf-2-8
outfile-3976bc53-6010-41b4-adc2-823c3cb17d91-1-9 
outfile-7e53f096-cf13-4eea-b52c-ee0c341f03bf-2-9

this addresses ian's issue...then if i re-run it the output files produced are
given the same names (so they just overwrite the output from the previous run)
which, i *think* is what mihael was referring to (?)

this bug might need a bit of clarification as it's not clear to me if it's been
resolved...

-- 
Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching the reporter.



More information about the Swift-devel mailing list