Does the prefetch command check for the existence of the file before it attemps to download it? If so, how does it verify the existence of a file?
Pinned topic Prefetch Command
cglimson 270004SV014 PostsACCEPTED ANSWER
Re: Prefetch Command2014-01-02T07:23:48Z in response to MBARTOSH
jgstew 270004VDPE56 PostsACCEPTED ANSWER
Re: Prefetch Command2014-01-22T22:33:01Z in response to cglimson
The documentation is out of date and incorrect and does not directly address MBARTOSH's question.
The prefetch command should look for a matching SHA1 already downloaded, or look for a matching file name then try to verify the SHA1 & size.
In the documentation, an example is given in which an IF statement is used to differentiate between 2 different prefetch commands. This does not appear to work the way described and should result in both files being downloaded due to prefetch being executed before the IF statement is considered. This is consistent with the note that says relevance substitution is not performed. To actually achieve this, a prefetch block is needed instead.
Also, lately IBM provided fixlets have included a SHA256: value which is not in the documentation.
MattPeterson 270006J29J17 PostsACCEPTED ANSWER
Re: Prefetch Command2014-01-24T20:13:17Z in response to jgstew
The IF statements ARE evaluated before the prefech commands are issued. Clients will only download the files that are needed based on the IF statements prior to the action being run (I see this behavior all the time), however the relay server(s) will need to download ALL packages (including the ones the client doesn't need) before allowing the client(s) to run. The IF statements are actually evaluated again during the action.
If you use the prefetch block you will need to have all of your prefetch commands at the beginning of the action (prior to any other commands). Personally I find this somewhat limiting, so I stick with the old prefech commands.