- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Edit Admin
A bold assumption that the name has any relation to what throws the exception.
Edit Admin
No. The real problem is that they don't know one way or another whether they're in a deadlock situation, and yet they paid an HPC to come in and try to solve deadlock problems. OK, I agree, there were other problems that they knew (really? or did they just suspect, like here?) were deadlock problems, but linking this "suspect" to the rest by talking about deadlocks is ... suspect. (Not sorry.)
No. They brought in an HPC to try to fix them. Clearly it's not "try and fix" because the HPC didn't fix all of them, and it appears that some ended up worse than before.
Edit Admin
Ah, one of my pettest peeves. Thank you, sir.
Admin
One would think a highly paid consultant would now better than to catch the exception by value...
Edit Admin
One would think someone posting to such a pedantic forum would know better than to submit without proofreading.
Edit Admin
Why the F isn't there a "Like" button on this comment board?
Edit Admin
I think you mean pettiest.
Edit Admin
Without seeing the rest of the code we don't know if they released resources or not. There could be a finally block that does so. So if the retry macro goes to a line before the initial "try" statement, it could be workable. Not great coding, but it would likely solve the issue.
Edit Admin
My guess is that
retryis simply defined asthrowvia macro:An empty
throwstatement inside acatchblock will re-throw the current pending exception, in which case that makes the entire exception handler completely useless. It doesn't solve the (alleged) deadlock, it doesn't log anything, it just pretends nothing happened.Edit Admin
Maybe they're just hoping that if they keep on retrying long enough, the other thread holding the resource will give it up first. The retry thingee, whatever it is, could suspend the calling thread long enough to give the other thread(s) enough time to finish up and release the resource.
Please don't ask me how I know that this is a possibility.
Edit Admin
For the same reason I can't tell which of my posts you were replying to.
Edit Admin
". . . give the other thread(s) enough time to finish up and release the resource." But it's a deadlock which means the other thread can't finish until it gets whatever resource that's being held by this "loop"
Admin
Dare the "frist" crowd thrwo rocks at the "ot" poster??
The code is great for its exceptional you-can't-make-this-stuff-up, unironic-but-not-hipster perfection! Who would think to catch a deadlock and then simply put "retry"??? Artistic genius!