Hi Ram,

1) Can you do this check on client side?
You can't, because this operation is supposed to be atomic and if you do a
get and the value changes on server side in the meantime, you will be doing
it wrong.


2) Can we just use the row that is stuffed inside the Put/Delete?
(Anyway this change will be an api change).

This lose the case when you want to check the value of column A and based
on it change the value of column B. So again we can't.

Hope this helps.

Thanks,
Dishant

On Mon, Jul 2, 2012 at 4:44 AM, Ramkrishna.S.Vasudevan <
[email protected]> wrote:

> Hi Devs
>
>
>
> Currently the checkAndPut, checkAndDelete these api currently accept the
> row
> that needs to be checked and the Delete/Put also along with it.
>
>
>
> Again internally in the code HRegion.checkAndMutate() there is a
> verification to find if the row passed and the one inside the
> Mutate(Put/Delete) object are same.  If not throw an exception.
>
>
>
> 1)      Can we do this check on the client side itself?
>
> 2)      Can we just use the row that is stuffed inside the Put/Delete?
> (Anyway this change will be an api change).
>
>
>
> Pls correct me if am missing something here.
>
>
>
> Regards
>
> Ram
>
>
>
>
>
>
>
>
>
>

Reply via email to