-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Adding LeaseID checking in Txn needs a Cmp type method #8487
Comments
I wrote a patch adding this if anyone would like it. |
https://github.com/coreos/etcd/blob/master/etcdserver/etcdserverpb/rpc.proto#L520 This feature doesn't seem to be working as expected. I am working on adding support for this here: https://github.com/davissp14/etcdv3-ruby/pull/95/files The txn lease comparison seems to ALWAYS return successfully regardless of the comparison. Is this issue relevant here? If not, let me know and I can open up a new issue. |
@davissp14 what is the server version? the feature only works on master. |
@xiang90 That would explain it. The server version I am testing against is 3.2.6. |
Fixed in master. Closing. |
Have you considered adding comparison on lease ID to 3.2? |
@danevandyck This was fixed via #8324. |
I'd like to do Txn's like this:
Thanks to some lovely work @heyitsanthony pointed me to, you could write:
I'd propose adding this as a helper function alongside https://godoc.org/github.com/coreos/etcd/clientv3#Value but there are apparently some naming convention issues in "mapping directly to the mvccpb.KeyValue".
These are beyond my understanding of the internals, but this issue is to track this so interested users get a notification when this is fixed so we can update our code.
Thanks for the great feature!
The text was updated successfully, but these errors were encountered: