Skip to content
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

knotd retrying to write value to Thing for all types of error #16

Open
jcorde opened this issue Aug 28, 2019 · 5 comments
Open

knotd retrying to write value to Thing for all types of error #16

jcorde opened this issue Aug 28, 2019 · 5 comments

Comments

@jcorde
Copy link
Member

jcorde commented Aug 28, 2019

knotd tries to write new values to Thing even after receiving a KNOT_ERR_INVALID message.

Retries should be done only in specific cases, such as signal loss or when explicitly told to do so.

This leads to extra effort trying to do something that is impossible.

@jcorde
Copy link
Member Author

jcorde commented Aug 28, 2019

As pointed by @ramonhpr , this is probably related to the property_changed callback at msg.c.

@jcorde
Copy link
Member Author

jcorde commented Aug 28, 2019

Also, it's suggested to create another error type like KNOT_ERR_TRY_AGAIN on knot_protocol, something similar to KNOT_ERR_INVALID.

This message will be sent by the thing. The knotd will get this message and know that it should try again. If receiving something like KNOT_ERR_INVALID, it should try again.

@jcorde
Copy link
Member Author

jcorde commented Aug 28, 2019

Of course, the knot thing should select the fit message to each found error

@ramonhpr
Copy link
Contributor

@vitbaq @alla3 Since we removed the function property_changed we should verify if the error keeps happening.

@ramonhpr
Copy link
Contributor

@jcorde How can we reproduce this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants