-
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
"Key Not Found" error removed in v3 #12627
Comments
I don't know, but I would guess the motivation was to allow safer usage in scripting, like: MY_KEY=$(etcdctl get mykey) But, personally I would expect at least exit_code ~= 0 if no key matching the requirements was found. @xiang90 What do you think about such contribution to: https://github.com/etcd-io/etcd/blob/master/etcdctl/ctlv3/command/get_command.go ? For backward compatibility it would need to be an opt-in flag. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
This should be better. The motivation is to keep the stdout clean and consistent. So we do not print out "key not found" to stdout anymore in v3. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
HI there,
I installed etcd v2 and etcd v3.4.0. Did etcdctl get for a non existing key in both. Got "Key not found" error in v2 and but, in v3 there isn't any response. May I know why this change was introduced ?
Thanks,
Guna
The text was updated successfully, but these errors were encountered: