Hello,
I have a 3 node etcd cluster in which I am creating a key which is attached with a lease.
On one of the nodes I see the following
# etcdctl --endpoints=[127.0.0.1:2379]--write-out="fields" get <key>
"ClusterID" : 7883545499860909880
"MemberID" : 4450878479066924184
"Revision" : 25346
"RaftTerm" : 11
"Key" : "<key>"
"CreateRevision" : 20001
"ModRevision" : 20001
"Version" : 1
"Value" : "<value>"
"Lease" : 331116914086947474
"More" : false
"Count" : 1
However the lease associated with this key has expired
# etcdctl lease timetolive 4985D143B46AA92
lease 04985d143b46aa92 granted with TTL(0s), remaining(-1s)
Shouldn't this key have been deleted?
However if I set the endpoints to a list of 3 etcd nodes, etcdctl returns the correct output.
# etcdctl --endpoints=[<list of ips>] --write-out="fields" get <key>
"ClusterID" : 7883545499860909880
"MemberID" : 4450878479066924184
"RaftTerm" : 11
"More" : false
"Count" : 0
Why do I see such a discrepancy in the outputs? One thing to note here is that the node which shows incorrect data rebooted when this lease was alive.