• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Deadlocks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Deadlocks
      • From: Anjo Krank <email@hidden>
References: 
 >Deadlocks (From: Simon McLean <email@hidden>)
 >Re: Deadlocks (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: Deadlocks
  • Next by Date: Re: Deadlocks
  • Previous by thread: Re: Deadlocks
  • Next by thread: Re: Deadlocks
  • Index(es):
    • Date
    • Thread