Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] support checkAndInsUp #64

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Conversation

shenyunlong
Copy link
Contributor

@shenyunlong shenyunlong commented Dec 25, 2023

Summary

In this pull request, We implemented a new interface checkAndInsUp, which means that insert up operations are performed only if the check is successful, and this interface is useful in some cases, such as asynchronous log synchronization in different clusters, need to check the timestamp of the data, and only allow newer operations to be performed.

Solution Description

We added some flags in obTableQueryAndMutate and reused this rpc message to pass the check and execute semantics, and the obkv server will perform this rpc call and return a response to the client. In addition, in order to support batch checking and modification and improve throughput, we implement a new batch rpc message format ObTableLSOpRequest.

@shenyunlong shenyunlong force-pushed the master branch 2 times, most recently from b3b3b7a to 6d6fe60 Compare January 8, 2024 02:01
@IHEII
Copy link
Contributor

IHEII commented Jan 8, 2024

LGTM

@shenyunlong shenyunlong merged commit e078efe into oceanbase:master Jan 8, 2024
2 checks passed
eemjwu pushed a commit to eemjwu/obkv-table-client-java that referenced this pull request Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants