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

Add warning if node setup takes too long #623

Merged
merged 2 commits into from
Mar 7, 2024
Merged

Add warning if node setup takes too long #623

merged 2 commits into from
Mar 7, 2024

Conversation

marcelveldt
Copy link
Contributor

Last couple of weeks we have been investigating some sdk lockup issues. In fact it's not a complete deadlock but a node setup (initial read subscription) that takes forever. In our observations the transmission is halfway aborted in the read request and then resumed in some sort of loop, so the Read request never finishes.

It's hard to reproduce the issue and if its limited to only Nanoleaf bulbs or also other devices and if the type of Border routers make a difference.

This PR adds a big fat warning in the log if we detect this situation if the node setup takes longer than 15 minutes.
It will keep logging this message every 15 minutes until the user takes action. There are only 5 slots available for node setup so if all 5 are taken, the server will stall setting up any new nodes.

The issue should not be ignored by the user but action taken, either by resolving the connectivity issue(s) or by reporting this to us so we can keep track.

example of the warning in the log:

Scherm­afbeelding 2024-03-07 om 18 08 38

@marcelveldt marcelveldt added the maintenance Code (quality) improvement or small enhancement which not a new feature label Mar 7, 2024
@marcelveldt marcelveldt requested a review from agners March 7, 2024 20:43
@marcelveldt marcelveldt merged commit a63cfab into main Mar 7, 2024
4 checks passed
@marcelveldt marcelveldt deleted the lock-warning branch March 7, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Code (quality) improvement or small enhancement which not a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants