When providing non-zero lease ID: etcdctl returns nothing for GET of key PUT using custom C++ API (using v3) that can GET and PUT #17515
Unanswered
thebriancurtis
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use etcdctl to get a key that is put using a custom application interacting with the v3 API. The custom application, written in C++, can PUT and GET the key/value pair, but etcdctl simply returns with no output. Using only etcdctl, I am able to PUT and GET key/value pairs. The C++ API using a int64_t for the lease ID, while etcdctl uses hex -- could that have something do do with the problem?
Weirdly, a PUT with etcdctl is readable with a GET from the C++ API.
Interestingly, when I provide 0 as the lease ID for the PUT from the C++ API, etcdctl is able to GET the k/v pair. What's up with lease ID that could cause this?
example key/value pair:
members/192.168.0.100, ""
etcdctl version: 3.5.10
API version.: 3.5
Beta Was this translation helpful? Give feedback.
All reactions