Comment 4 for bug 541637

Revision history for this message
Gary Poster (gary) wrote : Re: searchTasks doesn't return all matching tasks?!

> Is the problem here that I'm mutating the list, or could it also
> happen if they were being changed by someone else on Launchpad? If
> the latter there is no way any particular client could avoid it.

I suspect that it is generically fragile, yes. That's a compelling argument. ``list(iterable)`` would reduce the risk but it would just make the time of the vulnerability smaller, not make it disappear.

Leonard, could you confirm that Martin's scenario (anyone could break the iteration) is correct?

If that's the case, are there pre-existing ideas on how to make this better, or do you have something that comes to mind quickly?

For now, I'm marking this Triaged: Low, and changing the title as I mentioned, but also adding this to the list of bugs to consider for the API clean-up after the performance work.

Gary