Re: Deadlocks
Re: Deadlocks
- Subject: Re: Deadlocks
- From: Mike Schrag <email@hidden>
- Date: Wed, 5 Sep 2007 18:39:24 -0400
If you see problems in the stacktrace, when the session gets
checked out from the session store, make sure you NEVER EVER touch
something from the session's default editing context inside your
"performAction" method on a long response page. This will autolock
your session's default editing context, it will not get unlocked,
because you are outside of the rr loop and the next checkout for
that session will fail.
This particular deadlock should be fixed as of a couple weeks ago
after we talked, btw ... I think I rolled autolocking into long
response, also. But generally speaking, if you're in another thread,
I would lock manually to be safe.
Also, if you ever access an EODatabaseContext directly, you MUST lock
that yourself. It will not autolock, and that will cause terrible
problems.
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Deadlocks (From: Simon McLean <email@hidden>) |
| >Re: Deadlocks (From: Guido Neitzer <email@hidden>) |