xline-kv / Xline

A geo-distributed KV store for metadata management
https://xline.cloud
Apache License 2.0
596 stars 74 forks source link

[Bug]: The xlinectl won't renew the lease of the lock key #664

Closed Phoenix500526 closed 3 months ago

Phoenix500526 commented 7 months ago

Description about the bug

The xlinectl won't renew the lease of the lock key during the lock usage.

How do we reproduce the issue?

  1. start up an xline cluster via quick_start.sh
  2. execute a watch command to watch the lock key
    $ docker exec client /mnt/xlinectl --endpoints=http://172.20.0.3:2379,http://172.20.0.4:2379,http://172.20.0.5:2379 watch --prefix mutex
  3. execute the lock command on another terminal
    $ docker exec client /mnt/xlinectl --endpoints=http://172.20.0.3:2379,http://172.20.0.4:2379,http://172.20.0.5:2379 lock mutex`
  4. wait the lock lease expires.

The result was pasted down below: image

Version

0.6.1 (Default)

Relevant log output

No response

Code of Conduct