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

Introducing VersionType.FORCE & VersionType.EXTERNAL_GTE #4993

Closed
wants to merge 7 commits into from

Conversation

bleskes
Copy link
Contributor

@bleskes bleskes commented Feb 3, 2014

Also added "external_gt" as an alias name for VersionType.EXTERNAL , accessible for the rest layer.

Closes #4213 , Closes #2946

@@ -328,6 +335,7 @@ protected ShardIterator shards(ClusterState clusterState, BulkShardRequest reque
}

assert responses[requestIndex] != null; // we must have set a response somewhere.
assert preVersionTypes[requestIndex] != null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we move this up and fail earlier?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only reason to add it was to make sure that none of the code paths forget to set it. Did it when I found a place that did (DeleteRequest)

@s1monw
Copy link
Contributor

s1monw commented Feb 6, 2014

I think this looks good - I still would want @kimchy to look at it before we push

@kimchy
Copy link
Member

kimchy commented Mar 9, 2014

LGTM!

@bleskes
Copy link
Contributor Author

bleskes commented Mar 10, 2014

Incorporated Simons feedback and pushed to 1.x ( 4e0e406 ) and master (b7a95d1)

@mrkamel
Copy link

mrkamel commented Mar 24, 2015

I don't find this feature in the docs, especially not within the "optimistic concurrency control" documentation where i'd expect it ... is this still alive?

@bleskes
Copy link
Contributor Author

bleskes commented Mar 24, 2015

@clintongormley clintongormley added >feature v1.1.0 v2.0.0-beta1 :Distributed/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. labels Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. >feature v1.1.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature external version 'force' option Current external versioning semantics not suitable for all use cases
6 participants