You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@phoenix.apache.org by Mohammad Adnan Raza <ad...@gmail.com> on 2016/04/13 16:42:33 UTC

Using transaction in custom coprocessor

Hello everyone,

I have requirement to use transaction in my project. My requirement is - a
client starts transaction and do some upsert operation. I'll have a
coprocessor that will do few more puts. Now what I want is all these
operation should go in single transaction. Meaning if client rollbacks her
transaction my puts in coprocessor should also get rolledback.

My question is . is it possible to use transaction started in client in
coprocessors?


-- 

*With Best Regards,*

*       Mohammad Adnan*

Re: Using transaction in custom coprocessor

Posted by Thomas D'Silva <td...@salesforce.com>.
It is possible to use a transaction started by a client in a coprocessor.
The transaction is serialized as the TxConstants.TX_OPERATION_ATTRIBUTE_KEY
attribute on the operation.

On Wed, Apr 13, 2016 at 7:42 AM, Mohammad Adnan Raza <ad...@gmail.com>
wrote:

> Hello everyone,
>
> I have requirement to use transaction in my project. My requirement is - a
> client starts transaction and do some upsert operation. I'll have a
> coprocessor that will do few more puts. Now what I want is all these
> operation should go in single transaction. Meaning if client rollbacks her
> transaction my puts in coprocessor should also get rolledback.
>
> My question is . is it possible to use transaction started in client in
> coprocessors?
>
>
> --
>
> *With Best Regards,*
>
> *       Mohammad Adnan*
>