Overview
| Artifact ID: | 13a17d899c0ff73c5bc53b49ea7157415a080fe3 |
|---|---|
| Ticket: | 652765ffffffffffffffffffffffffffffffffff
errors disappear in trace callbacks |
| User & Date: | vincentdarley on 2004-08-26 15:26:38 |
Changes
- icomment:
Logged In: YES user_id=32170 Sorry, I disagree. If errors are swallowed then we have a well-defined, consistent behaviour: command renames and deletes always succeed. Therefore all trace callbacks can assume that is true. Of course this doesn't mean that a badly written callback can't accidentally throw an error and therefore not succeed and therefore leave _itself_ in an inconsistent state. But that is an example of the programmer causing themselves a problem. However, if errors propagate, then the example I gave shows how one trace callback can abort a 'rename' and therefore cause problems to another trace callback which doesn't know the rename was aborted. This means that one programmer can shoot another programmer in the foot. That's the inconsistency I don't like. There's a distinction between 'your program being in an inconsistent state' and 'this piece of code is in an inconsistent state not because it contains any bugs but because a totally different piece of code contains bugs'. It's also why I like the 'bgerror' solution because it avoids this inconsistency. (But your points about the event loop are good, and mean we effectively have to rule that solution out). Now, it may well be that allowing this inconsistency is the best way forward, trading it off for better debugging (i.e. receiving an error message), but it would be nice if we can find a more consistent approach.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"