[email protected] wrote:
[snip]
server/catalog.py:
- line 291: Do we need EnvironmentError exception handling here?
Hmm, probably. What's the right behavior for a depot which is missing one
or more manifest files, and what's the right search behavior? Without
looking too deeply into the code, my guess is that the right thing to do is
to just drive on and serve the rest of the information as search results,
and log some kind of error. There's no (simple/easy/reasonable) way for the
indexing process, which is (usually) a different process than the one
serving requests, to tell the other process to stop serving all search
requests, and I'm not even sure if that's the behavior we'd want anyway.
At least for now, logging an error is probably sufficient. My guess is
that if a depot is missing a manifest, the administrator is going to get
a lot of complaints from users. My concern was that we'd have a stack
trace and the indexing would never finish.
After some more thought, I'm declaring this issue not this bug. There is
the same amount of error handling now as there was before (ie, none). I
agree this is a problem, but the amount of plumbing needed to make this
work on the server side (and probably on the client side), since we
don't have a generic logging/error reporting module, is not trivial.
Rather than trying to shoehorn something into this fix, I think it makes
more sense to design this for carefully. Is that reasonable?
Brock
[snip]
-j
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss