Explorar o código

Document/upgrades: add "lease timetolive" output change

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee %!s(int64=8) %!d(string=hai) anos
pai
achega
a7282a3f9f
Modificáronse 1 ficheiros con 17 adicións e 0 borrados
  1. 17 0
      Documentation/upgrades/upgrade_3_3.md

+ 17 - 0
Documentation/upgrades/upgrade_3_3.md

@@ -253,6 +253,23 @@ _, err = io.Copy(f, rc)
 err == context.DeadlineExceeded
 ```
 
+#### Change in `etcdctl lease timetolive` command output
+
+Previously, `lease timetolive LEASE_ID` command on expired lease prints `-1s` for remaining seconds. 3.3 now outputs clearer messages.
+
+Before
+
+
+```bash
+lease 2d8257079fa1bc0c granted with TTL(0s), remaining(-1s)
+```
+
+After
+
+```bash
+lease 2d8257079fa1bc0c already expired
+```
+
 #### Change in `golang.org/x/net/context` imports
 
 `clientv3` has deprecated `golang.org/x/net/context`. If a project vendors `golang.org/x/net/context` in other code (e.g. etcd generated protocol buffer code) and imports `github.com/coreos/etcd/clientv3`, it requires Go 1.9+ to compile.