List:Commits« Previous MessageNext Message »
From:Jonas Oreland Date:July 16 2007 9:43pm
Subject:Re: [NDB patch 5/5] BUG#28804 Dbtc::releaseAbortResources() send
returnsignal when exists.
View as plain text  
stewart@stripped wrote:
> On failing to seize space in saveINDXATTRINFO, we need to send a reply
> back to API that we've aborted the txn.
> 
> Previously we wouldn't send the reply, and the ultra-long timeout
> waiting for reply in NdbTransaction would be hit.
> 
> This enables "instant" rollback and application notification.
> 
> ===== ndb/src/kernel/blocks/dbtc/DbtcMain.cpp 1.110 vs edited =====
> Index: ndb-work/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
> ===================================================================
> --- ndb-work.orig/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp	2007-07-12
> 12:43:51.161095427 +1000
> +++ ndb-work/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp	2007-07-12 12:43:54.941310849
> +1000
> @@ -11782,6 +11782,8 @@ bool Dbtc::saveINDXKEYINFO(Signal* signa
>      ptrCheckGuard(apiConnectptr, capiConnectFilesize, apiConnectRecord);
>      releaseIndexOperation(apiConnectptr.p, indexOp);
>      terrorCode = 4000;
> +    if(TcKeyReq::getExecuteFlag(indexOp->tcIndxReq.requestInfo))
> +      apiConnectptr.p->m_exec_flag= 1;
>      abortErrorLab(signal);
>      return false;
>    }
> 
> --
> Stewart Smith
> 
> 

at the very least, this should also be added to Dbtc::saveINDXATTRINFO
most likely more places...

Thread
[NDB patch 0/5] Bug28804 Unknown error returned on a query using joinsstewart16 Jul
  • [NDB patch 3/5] BUG#28804 fix ha_ndbcluster::unique_index_read to properly return errorstewart16 Jul
  • [NDB patch 4/5] BUG#28804 release index operation for unique index lookup (without matching tuple) on completion of operation, not txnstewart16 Jul
  • [NDB patch 5/5] BUG#28804 Dbtc::releaseAbortResources() send returnsignal when exists.stewart16 Jul
    • Re: [NDB patch 5/5] BUG#28804 Dbtc::releaseAbortResources() sendreturnsignal when exists.Jonas Oreland16 Jul
  • [NDB patch 1/5] Test for Bug#28804stewart16 Jul
    • Re: [NDB patch 1/5] Test for Bug#28804Jonas Oreland16 Jul
  • [NDB patch 2/5] BUG#28804 improve NDBAPI behaviour in execute on timeout waiting for txn respones.stewart16 Jul
  • Re: [NDB patch 0/5] Bug28804 Unknown error returned on a queryusing joinsStewart Smith16 Jul
  • Re: [NDB patch 0/5] Bug28804 Unknown error returned on a query usingjoinsJonas Oreland16 Jul