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

Expose Sequence Number based Optimistic Concurrency Control in the rest layer #36721

Merged
merged 5 commits into from
Dec 18, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
/have/has
bleskes committed Dec 17, 2018
commit aaf9da1c9a8ae3e476d821fba6cd27509660548a
Original file line number Diff line number Diff line change
@@ -45,11 +45,11 @@
},
"if_seq_no_match" : {
"type" : "number",
"description" : "only perform the delete operation if the last operation to have changed the document has the specified sequence number"
"description" : "only perform the delete operation if the last operation that has changed the document has the specified sequence number"
},
"if_primary_term_match" : {
"type" : "number",
"description" : "only perform the delete operation if the last operation to have changed the document has the specified primary term"
"description" : "only perform the delete operation if the last operation that has changed the document has the specified primary term"
},
"version" : {
"type" : "number",
4 changes: 2 additions & 2 deletions rest-api-spec/src/main/resources/rest-api-spec/api/index.json
Original file line number Diff line number Diff line change
@@ -59,11 +59,11 @@
},
"if_seq_no_match" : {
"type" : "number",
"description" : "only perform the index operation if the last operation to have changed the document has the specified sequence number"
"description" : "only perform the index operation if the last operation that has changed the document has the specified sequence number"
},
"if_primary_term_match" : {
"type" : "number",
"description" : "only perform the index operation if the last operation to have changed the document has the specified primary term"
"description" : "only perform the index operation if the last operation that has changed the document has the specified primary term"
},
"pipeline" : {
"type" : "string",
Original file line number Diff line number Diff line change
@@ -91,7 +91,7 @@ public long getVersion() {
}

/**
* The sequence number assigned to the last operation to have changed this document, if found.
* The sequence number assigned to the last operation that has changed this document, if found.
*/
public long getSeqNo() {
return getResult.getSeqNo();
Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@ public long getVersion() {
}

/**
* The sequence number assigned to the last operation to have changed this document, if found.
* The sequence number assigned to the last operation that has changed this document, if found.
*/
public long getSeqNo() {
return seqNo;