client-go icon indicating copy to clipboard operation
client-go copied to clipboard

Support RawBatchCAS command

Open disksing opened this issue 4 years ago • 2 comments

The requirement was first brought up in https://github.com/tikv/client-go/pull/239 I think we may need more discuss to decide if it is a generic requirement.

/cc @neicunlideyu @iosmanthus

disksing avatar Jul 31 '21 06:07 disksing

The requirement was first brought up in #239 I think we may need more discuss to decide if it is a generic requirement.

/cc @neicunlideyu @iosmanthus

There is no such interface RawBatchBatchCompareAndSwap in TiKV for now. We may need to implement this interface from the TiKV first. However, the CAS implementation of TiKV is considered unstable for now because of the design from https://github.com/tikv/rfcs/pull/69. I suggest delay this feature but keep the CAS interface in the client for some use cases.

iosmanthus avatar Aug 04 '21 08:08 iosmanthus

The client can batch CAS requests in BatchCommand and send them to tikv using the steaming interface.

andylokandy avatar Aug 05 '21 06:08 andylokandy