[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] condor_q typo or bug?



Good catch. This is definitely a bug. It will be fixed in 8.0.7 (and 8.1.4).
-tj

On 2/6/2014 7:21 AM, Pek Daniel wrote:
This is from condor_q manpage:

-stream-results

Display results as jobs are fetched from the job queue rather than
storing results in  memory until  all  jobs  have been fetched. This
can reduce memory consumption when fetching large numbers of jobs, but
if condor_q is paused while displaying results, this could result in a
timeout  in  communication with condor_schedd .

The part which should take care of the "-stream-results" parameter:
https://github.com/htcondor/htcondor/blob/master/src/condor_q.V6/queue.cpp#L1826-1833

This is the relevant snippet of prefix-matching argparsing code:
https://github.com/htcondor/htcondor/blob/master/src/condor_utils/match_prefix.cpp#L44-53

So is_arg_prefix("stream-result", "stream", 2); won't match.

Possible fixes:
- rename the argument to "-stream"

- change this line
https://github.com/htcondor/htcondor/blob/master/src/condor_q.V6/queue.cpp#L1826
to
if (is_arg_prefix (arg, "stream-results", 2)) {

- remove this line
https://github.com/htcondor/htcondor/blob/master/src/condor_utils/match_prefix.cpp#L53

I might be wrong btw...

Cheers,
Daniel
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/