Subject | Re: Lost transactions that causes deadlocks |
---|---|
Author | rekkod |
Post date | 2005-06-22T13:17:52Z |
What is this timeout, and can it be configured?
--- In firebird-support@yahoogroups.com, "Peter Ypenburg"
<petery@d...> wrote:
--- In firebird-support@yahoogroups.com, "Peter Ypenburg"
<petery@d...> wrote:
> Hi Ann,the
>
> We use FB CS 1.5 on Linux. I will give a short explanation of how
> program works to understand the issue better.We build
>
> Our program opens a customizable list of columns from the database.
> a stored proc called OPEN_ITEMS_userno, the userno is the integervalue on
> the database so for userno 7 a stored proc called OPEN_ITEMS_7 iscreated.
> We chose to go this route for two reasons:wants
> 1) the number of columns returned needs to be only what the user
> (network traffic issues and the like) andour stored
> 2) on FB 1 this was our way of creating dynamic where clauses in
> procs.selecting
>
> The problem is that sometimes from creating the stored proc to
> data from it something goes wrong on the client side (e.g. user lostprocess and
> connection). Now when he opens the program again and redoes the
> at the point the code tries to create the stored proc again thefollowing
> error gets thrown:object
> Lock conflict on no wait transaction unsuccessful metadata update
> OPEN_ITEMS_7 is in use.is about
>
> This error (I think) is because there is still a transaction alive
> implicating the stored proc and thus the error occurs. The question
> how do we fix this. At the moment when this occurs the fix isnasty. Due to
> us running CS on Linux we do not know which of the currentprocesses running
> are the ones that are "lost". So we get everybody to log of thesystem and
> then kill the ones left over. The users are very distributed andthis
> process can take several hours, needless to say when this happensit is a
> major disruption in our and the client's live.read on
>
> To answer your question, yes we are seeing some other behavior. I
> the FB list that there is a timeout for transactions build into FB2, and
> that's the kind of thing that will really make a big difference inour
> lives.Harrison
>
> Peter Ypenburg
>
> -----Original Message-----
> From: firebird-support@yahoogroups.com
> [mailto:firebird-support@yahoogroups.com] On Behalf Of Ann W.
> Sent: Tuesday, June 21, 2005 8:24 PMdeadlocks
> To: firebird-support@yahoogroups.com
> Subject: Re: [firebird-support] Lost transactions that causes
>shouldn't
> Peter Ypenburg wrote:
> >
> > I need to understand how to handle lost transactions that causes
> deadlocks.
>
> Err... Interesting question. If the transaction is lost, it
> be causing deadlocks. In theory, when one transaction finds itselfthe
> blocks by another, the first thing it tries to do is determine if
> blocking transaction is alive or dead. The involves signaling itand
> is, I think, implemented in SuperServer with a check that theconnection
> is currently active and working at both ends. If not, the blocking
> transaction is declared dead and rolled back, undoing the block.
>
> Are you seeing some other behavior?
> >
>
> Regards,
>
>
> Ann
>
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Visit http://firebird.sourceforge.net and click the Resources item
> on the main (top) menu. Try Knowledgebase and FAQ links !
>
> Also search the knowledgebases at http://www.ibphoenix.com
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Yahoo! Groups Links